Esc

Http2_Terminal

structextensionexperimentalsince 0.36.1Source
  • macOS: Http2_Terminal works on macOS
  • Linux: Http2_Terminal works on Linux
  • Windows: Http2_Terminal works on Windows
  • Wasm: Http2_Terminal works on Wasm

Declaration

Http2_Terminal :: struct {
    kind: Http2_Terminal_Kind;    code: u32;// the peer explicitly refused this stream    not_processed: bool;}

Transport failure facts for status mapping and diagnostics. not_processed records an explicit peer refusal; callers must never infer automatic replay.

Example
exchange: Http2_Exchange;
terminal := exchange_terminal(*exchange);

assert(terminal.kind == .CONNECTION);
assert(terminal.code == 0 && !terminal.not_processed);

See also