Esc

exchange_trailers

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

Returns terminal fields after exchange_read reports EOF. Storage lives until close_exchange; an empty field list can still be complete.

Signature

exchange_trailers :: (
    exchange: *Http2_Exchange
) -> (fields: [] Header_Field, complete: bool)
Example
exchange: Http2_Exchange;
fields, complete := exchange_trailers(*exchange);

assert(fields.count == 0 && !complete); // not complete: the body was not read to its end

See also