class GRPC::RequestStream(T)

Overview

RequestStream(T) is the server-side handle for an inbound request stream. It exposes an Enumerable(T) interface over messages arriving from the client. The channel is closed (nil sentinel) when the client sends END_STREAM.

Included Modules

Defined in:

grpc/service_handler.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ch : ::Channel(Bytes | Nil), marshaller : Marshaller(T) = ProtoMarshaller(T).new) #

[View source]

Instance Method Detail

def each(& : T -> ) : Nil #
Description copied from module Enumerable(T)

Must yield this collection's elements to the block.


[View source]