struct
GRPC::UnaryResponse(T)
- GRPC::UnaryResponse(T)
- Struct
- Value
- Object
Overview
UnaryResponse is the typed client-facing view of a unary RPC result. It exposes the decoded message, initial metadata, trailing metadata, and final gRPC status.
Defined in:
grpc/response.crConstructors
Instance Method Summary
- #initial_metadata : GRPC::Metadata
- #message : T | Nil
- #ok! : T
- #status : GRPC::Status
- #trailing_metadata : GRPC::Metadata
Constructor Detail
def self.new(message : T | Nil, initial_metadata : GRPC::Metadata = GRPC::Metadata.new, trailing_metadata : GRPC::Metadata = GRPC::Metadata.new, status : GRPC::Status = GRPC::Status.ok)
#