struct

GRPC::ResponseEnvelope

Inherits Struct < Value < Object

ResponseEnvelope wraps a raw protobuf response payload, call metadata, and final status for unary-style responses.

Constructors

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)
Source

Instance methods

[](index : Int) : Bytes | GRPC::Status
Source
codec
Source
decode(type : T.class, marshaller : Marshaller(T) | Nil = nil) : T forall T
Source
descriptor
Source
info
Source
initial_metadata
Source
metadata
Source
status
Source
trailing_metadata
Source