class
GRPC::RawBidiCall
- GRPC::RawBidiCall
- Reference
- Object
Overview
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).
Included Modules
- Enumerable(Slice(UInt8))
Defined in:
grpc/stream.crConstructors
Instance Method Summary
- #cancel : Nil
-
#close_send : Nil
close_send signals the end of the client request stream.
-
#each(& : Bytes -> ) : Nil
Must yield this collection's elements to the block.
- #headers : Metadata
-
#send_raw(message_bytes : Bytes) : Nil
send_raw passes message_bytes (raw protobuf, no gRPC framing) to the transport.
- #status : Status
- #trailers : Metadata
-
#with_on_finish(hook : -> Nil) : self
with_on_finish appends a completion callback and returns self.
Constructor Detail
Instance Method Detail
Must yield this collection's elements to the block.
send_raw passes message_bytes (raw protobuf, no gRPC framing) to the transport.
with_on_finish appends a completion callback and returns self. The callback is invoked once when iteration ends or cancel is called.