class

GRPC::ClientStream(Req, Res)

Inherits Reference < Object

ClientStream(Req, Res) is the client handle for a client-streaming RPC. The client sends multiple request messages, then receives a single response.

Example: call = client.record_route points.each { |p| call.send(p) } summary = call.close_and_recv

Constructors

new(send_proc : Req -> _, close_proc : -> _, result : ::Channel(Exception | Res), headers_proc : -> Metadata = -> do Metadata.new end, status_proc : -> Status = -> do Status.ok end, trailers_proc : -> Metadata = -> do Metadata.new end, cancel_proc : -> Nil = -> do end)
Source

Instance methods

cancel
Source
close_and_recv

close_and_recv closes the request stream and waits for the server response.

Source
headers
Source
send(message : Req) : Nil

send transmits a request message to the server.

Source
status
Source
trailers
Source