GrpcCallResult
struct GrpcCallResultThe outcome of a unary call.
Fields:
status: the RPC :class:GrpcStatus (code + message), read from
grpc-status / grpc-message in the response headers.
message: the LPM-unwrapped reply payload bytes (empty on a
non-OK status or a trailers-only response).
http_status: the HTTP/2 :status (200 for a well-formed gRPC
response regardless of the RPC status code).
headers: the full response header set (initial HEADERS + merged
trailing HEADERS), for reading response metadata.
Implements Movable
- Fields
status: GrpcStatusmessage: List[UInt8]http_status: Intheaders: HeaderMap
is_ok
def is_ok(self) -> Bool True iff the RPC status code is OK (0).