class

GRPC::RawBidiCall

Inherits Enumerable < Reference < Object

RawBidiCall is the client-side handle for a full-duplex bidi-streaming RPC. All transport operations are captured as procs so the type is independent of any concrete transport implementation. Generated client stubs wrap this in a typed BidiCall(Req, Res).

Constructors

new(send_proc : Bytes -> Nil, close_proc : -> Nil, messages : ::Channel(Bytes | Nil), headers_proc : -> Metadata, status_proc : -> Status, trailers_proc : -> Metadata, cancel_proc : -> Nil, on_finish : -> Nil = -> do end)
Source

Instance methods

cancel
Source
close_send

close_send signals the end of the client request stream.

Source
each

Must yield this collection's elements to the block.

Source
headers
Source
send_raw(message_bytes : Bytes) : Nil

send_raw passes message_bytes (raw protobuf, no gRPC framing) to the transport.

Source
status
Source
trailers
Source
with_on_finish(hook : -> Nil) : self

with_on_finish appends a completion callback and returns self. The callback is invoked once when iteration ends or cancel is called.

Source