Esc

Upgrade_Handler

typeextensionexperimentalsince 0.36.1Source
  • macOS: Upgrade_Handler works on macOS
  • Linux: Upgrade_Handler works on Linux
  • Windows: Upgrade_Handler works on Windows
  • Wasm: Upgrade_Handler works on Wasm
Upgrade_Handler :: #type (link: Link, pending: [] u8, data: *void)

Runs after a successful HTTP/1.1 switch. Pending bytes are borrowed until the callback returns. The server owns and closes the link; the callback must finish before its route state is freed.

See also