Esc

close_send

procedureextensionsince 0.36.1Source
  • macOS: close_send works on macOS
  • Linux: close_send works on Linux
  • Windows: close_send works on Windows
  • Wasm: close_send works on Wasm

Half-closes the client's sending direction. No automatic retry occurs. .

Signature

close_send :: (call: *Call) -> Status
Example
channel: Channel; // set transport.base_url and transport.tls before the first call
method := Method.{ path = "/echo.Echo/Say" };
call, status := open_call(*channel, method);
assert(status.code == .OK);
defer close(*call);
status = close_send(*call); // no more requests
assert(status.code == .OK);

See also