Esc

finish_stream

procedureextensionexperimentalsince 0.36.1Source
  • macOS: finish_stream works on macOS
  • Linux: finish_stream works on Linux
  • Windows: finish_stream works on Windows
  • Wasm: finish_stream works on Wasm

Ends an HTTP/2 streamed response with terminal fields. Call once, after the last send_chunk, while the producer runs. Names must be lowercase regular header names; fields are borrowed only until this returns. False indicates an invalid block, another protocol, a closed stream, or transport failure.

Signature

finish_stream :: (stream: *Stream, fields: [] Header_Field) -> bool
Example
finish_stream(stream, Header_Field.[.{ name = "grpc-status", value = "0" }]);

See also