Esc

Http2_Exchange

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

Declaration

Http2_Exchange :: struct {
    state: *void;}

Opaque independently readable/writable stream. One reader and one writer may run concurrently on the same Io scheduler. Release with close_exchange.

Example
exchange: Http2_Exchange; // a handle that holds no stream
assert(exchange.state == null);
assert(exchange_cancelled(*exchange));

See also