class
GRPC::RawClientCall
- GRPC::RawClientCall
- Reference
- Object
Overview
RawClientCall is the client-side handle for a live client-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 ClientStream(Req, Res).
Defined in:
grpc/stream.crConstructors
Instance Method Summary
- #cancel : Nil
-
#close_and_recv : Bytes
close_and_recv closes the request stream and blocks until the server's single response arrives.
- #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
close_and_recv closes the request stream and blocks until the server's single response arrives. Returns the raw response bytes.
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 close_and_recv/cancel completes.