Classes | Functions | Variables
tests_aio.unit._test_server Namespace Reference

Classes

class  TestServiceServicer
 

Functions

def _create_extra_generic_handler (TestServiceServicer servicer)
 
def _maybe_echo_metadata (servicer_context)
 
def _maybe_echo_status (messages_pb2.SimpleRequest request, servicer_context)
 
def start_test_server (port=0, secure=False, server_credentials=None, interceptors=None)
 

Variables

string _INITIAL_METADATA_KEY = "x-grpc-test-echo-initial"
 
string _TRAILING_METADATA_KEY = "x-grpc-test-echo-trailing-bin"
 

Function Documentation

◆ _create_extra_generic_handler()

def tests_aio.unit._test_server._create_extra_generic_handler ( TestServiceServicer  servicer)
private

Definition at line 113 of file tests_aio/unit/_test_server.py.

◆ _maybe_echo_metadata()

def tests_aio.unit._test_server._maybe_echo_metadata (   servicer_context)
private
Copies metadata from request to response if it is present.

Definition at line 31 of file tests_aio/unit/_test_server.py.

◆ _maybe_echo_status()

def tests_aio.unit._test_server._maybe_echo_status ( messages_pb2.SimpleRequest  request,
  servicer_context 
)
private
Echos the RPC status if demanded by the request.

Definition at line 44 of file tests_aio/unit/_test_server.py.

◆ start_test_server()

def tests_aio.unit._test_server.start_test_server (   port = 0,
  secure = False,
  server_credentials = None,
  interceptors = None 
)

Definition at line 128 of file tests_aio/unit/_test_server.py.

Variable Documentation

◆ _INITIAL_METADATA_KEY

string tests_aio.unit._test_server._INITIAL_METADATA_KEY = "x-grpc-test-echo-initial"
private

Definition at line 27 of file tests_aio/unit/_test_server.py.

◆ _TRAILING_METADATA_KEY

string tests_aio.unit._test_server._TRAILING_METADATA_KEY = "x-grpc-test-echo-trailing-bin"
private

Definition at line 28 of file tests_aio/unit/_test_server.py.



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