Public Member Functions | List of all members
grpc_testing.StreamUnaryServerRpc Class Reference
Inheritance diagram for grpc_testing.StreamUnaryServerRpc:
Inheritance graph
[legend]

Public Member Functions

def cancel (self)
 
def initial_metadata (self)
 
def requests_closed (self)
 
def send_request (self, request)
 
def termination (self)
 

Detailed Description

Fixture for a stream-unary RPC serviced by a system under test.

Enables users to "play client" for the RPC.

Definition at line 379 of file src/python/grpcio_testing/grpc_testing/__init__.py.

Member Function Documentation

◆ cancel()

def grpc_testing.StreamUnaryServerRpc.cancel (   self)

◆ initial_metadata()

def grpc_testing.StreamUnaryServerRpc.initial_metadata (   self)
Accesses the initial metadata emitted by the system under test.

This method blocks until the system under test has added initial
metadata to the RPC (or has provided one or more response messages or
has terminated the RPC, either of which will cause gRPC Python to
synthesize initial metadata for the RPC).

Returns:
  The initial metadata for the RPC.

Reimplemented in grpc_testing._server._server_rpc.StreamUnaryServerRpc.

Definition at line 386 of file src/python/grpcio_testing/grpc_testing/__init__.py.

◆ requests_closed()

def grpc_testing.StreamUnaryServerRpc.requests_closed (   self)
Indicates the end of the RPC's request stream.

Reimplemented in grpc_testing._server._server_rpc.StreamUnaryServerRpc.

Definition at line 410 of file src/python/grpcio_testing/grpc_testing/__init__.py.

◆ send_request()

def grpc_testing.StreamUnaryServerRpc.send_request (   self,
  request 
)
Sends a request to the system under test.

Args:
  request: A request message for the RPC to be "sent" to the system
    under test.

Reimplemented in grpc_testing._server._server_rpc.StreamUnaryServerRpc.

Definition at line 400 of file src/python/grpcio_testing/grpc_testing/__init__.py.

◆ termination()

def grpc_testing.StreamUnaryServerRpc.termination (   self)
Blocks until the system under test has terminated the RPC.

Returns:
  A (response, trailing_metadata, code, details) sequence with the RPC's
    response, trailing metadata, code, and details.

Reimplemented in grpc_testing._server._server_rpc.StreamUnaryServerRpc.

Definition at line 420 of file src/python/grpcio_testing/grpc_testing/__init__.py.


The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:40