Esc

Ws_Deflate

structextensionsince 0.36.1Source
  • macOS: Ws_Deflate works on macOS
  • Linux: Ws_Deflate works on Linux
  • Windows: Ws_Deflate works on Windows
  • Wasm: Ws_Deflate works on Wasm

Declaration

Ws_Deflate :: struct {
    enabled: bool;    server_window_present: bool;    client_window_present: bool;    server_no_context_takeover: bool;    client_no_context_takeover: bool;    server_max_window_bits: int = 15;    client_max_window_bits: int = 15;}

The negotiated permessage-deflate settings. Parse an offer or response with ws_negotiate; the *_present flags record which window parameters were stated explicitly.

See also