Classes | Functions | Variables
tests.interop.service Namespace Reference

Classes

class  TestService
 

Functions

def _maybe_echo_metadata (servicer_context)
 
def _maybe_echo_status_and_message (request, servicer_context)
 

Variables

string _INITIAL_METADATA_KEY = "x-grpc-test-echo-initial"
 
string _TRAILING_METADATA_KEY = "x-grpc-test-echo-trailing-bin"
 
int _US_IN_A_SECOND = 1000 * 1000
 

Function Documentation

◆ _maybe_echo_metadata()

def tests.interop.service._maybe_echo_metadata (   servicer_context)
private
Copies metadata from request to response if it is present.

Definition at line 29 of file src/python/grpcio_tests/tests/interop/service.py.

◆ _maybe_echo_status_and_message()

def tests.interop.service._maybe_echo_status_and_message (   request,
  servicer_context 
)
private
Sets the response context code and details if the request asks for them

Definition at line 42 of file src/python/grpcio_tests/tests/interop/service.py.

Variable Documentation

◆ _INITIAL_METADATA_KEY

string tests.interop.service._INITIAL_METADATA_KEY = "x-grpc-test-echo-initial"
private

◆ _TRAILING_METADATA_KEY

string tests.interop.service._TRAILING_METADATA_KEY = "x-grpc-test-echo-trailing-bin"
private

◆ _US_IN_A_SECOND

int tests.interop.service._US_IN_A_SECOND = 1000 * 1000
private


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