struct GRPC::UnaryResponse(T)

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.cr

Constructors

Instance Method Summary

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

[View source]

Instance Method Detail

def initial_metadata : GRPC::Metadata #

[View source]
def message : T | Nil #

[View source]
def ok! : T #

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

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

[View source]