struct
GRPC::ResponseEnvelope
- GRPC::ResponseEnvelope
- Struct
- Value
- Object
Overview
ResponseEnvelope wraps a raw protobuf response payload, call metadata, and final status for unary-style responses.
Defined in:
grpc/interceptor.crConstructors
Instance Method Summary
- #[](index : Int) : Bytes | GRPC::Status
- #codec : String | Nil
- #decode(type : T.class, marshaller : Marshaller(T) | Nil = nil) : T forall T
- #descriptor : String | Nil
- #info : CallInfo
- #initial_metadata : GRPC::Metadata
- #metadata : GRPC::Metadata
- #raw : Bytes
- #status : GRPC::Status
- #trailing_metadata : GRPC::Metadata
Constructor Detail
def self.new(info : CallInfo, raw : Bytes, status : GRPC::Status, initial_metadata : GRPC::Metadata = GRPC::Metadata.new, trailing_metadata : GRPC::Metadata = GRPC::Metadata.new, codec : String | Nil = nil, descriptor : String | Nil = nil)
#