struct GRPC::ResponseEnvelope

Overview

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

Defined in:

grpc/interceptor.cr

Constructors

Instance Method Summary

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

[View source]

Instance Method Detail

def [](index : Int) : Bytes | GRPC::Status #

[View source]
def codec : String | Nil #

[View source]
def decode(type : T.class, marshaller : Marshaller(T) | Nil = nil) : T forall T #

[View source]
def descriptor : String | Nil #

[View source]
def info : CallInfo #

[View source]
def initial_metadata : GRPC::Metadata #

[View source]
def metadata : GRPC::Metadata #

[View source]
def raw : Bytes #

[View source]
def status : GRPC::Status #

[View source]
def trailing_metadata : GRPC::Metadata #

[View source]