Esc

Http2_Terminal_Kind

enumextensionexperimentalsince 0.36.1Source
  • macOS: Http2_Terminal_Kind works on macOS
  • Linux: Http2_Terminal_Kind works on Linux
  • Windows: Http2_Terminal_Kind works on Windows
  • Wasm: Http2_Terminal_Kind works on Wasm

Declaration

Http2_Terminal_Kind :: enum u8 {
    NONE;    RESET;    GOAWAY;    CONNECTION;}

Failure classification returned by exchange_terminal; NONE leaves application completion to the received message and trailers.

Example
kinds := Http2_Terminal_Kind.[.NONE, .RESET, .GOAWAY, .CONNECTION];

exchange: Http2_Exchange;
assert(exchange_terminal(*exchange).kind == kinds[3]); // a closed handle: the connection is gone

See also