Expand description
WebSocket and upgrade tunneling
This module provides functionality for handling HTTP upgrade requests, including WebSocket connections, and bidirectional tunneling.
Functionsยง
- copy_
upgrade_ headers - Copy upgrade-related headers from source to destination request parts
- get_
upgrade_ protocol - Get the upgrade protocol from a request
- get_
websocket_ key - Extract WebSocket key from a request for validation
- get_
websocket_ version - Extract WebSocket version from a request
- is_
upgrade_ request - Check if a request is an upgrade request
- is_
upgrade_ response - Check if a response indicates a successful upgrade
- is_
websocket_ header - Check if a header should be preserved for WebSocket upgrades
- is_
websocket_ upgrade - Check if a request is a WebSocket upgrade request
- proxy_
tunnel - Proxy a tunnel connection between two upgraded connections
- proxy_
upgrade - Handle upgrade with explicit upgrade futures