Esc

exchange_finish

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

Ends server output with terminal fields. No DATA may follow this operation.

Signature

exchange_finish :: (exchange: *Http2_Exchange, fields: [] Header_Field) -> bool
Example
exchange: Http2_Exchange;
assert(!exchange_finish(*exchange, Header_Field.[.{ name = "grpc-status", value = "0" }]));

See also