ray.serve.grpc_util.RayServegRPCContext#
- class ray.serve.grpc_util.RayServegRPCContext(grpc_context: grpc._cython.cygrpc._ServicerContext)[source]#
Context manager to set and get gRPC context.
This class implements most of the methods from ServicerContext (see: https://grpc.github.io/grpc/python/grpc.html#grpc.ServicerContext). It’s serializable and can be passed with the request to be used on the deployment.
PublicAPI (beta): This API is in beta and may change before becoming stable.
Methods
Gets the auth context for the call.
Accesses the value to be used as status code upon RPC completion.
Accesses the value to be used as detail string upon RPC completion.
Accesses the metadata sent by the client.
Identifies the peer that invoked the RPC being serviced.
Gets one or more peer identity(s).
The auth property used to identify the peer.
Sets the value to be used as status code upon RPC completion.
Set the compression algorithm to be used for the entire call.
Sets the value to be used as detail string upon RPC completion.
Sets the trailing metadata for the RPC.