mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-04 11:41:32 +08:00
Core classes for HTTP/2 server-side protocol handling: - HTTP2Stream: Stream state management matching RFC 7540 Section 5.1 - StreamState enum for proper lifecycle tracking - Request/response tracking and body buffering - Pseudo-header extraction for :method, :path, etc. - Proper state transitions for half-close semantics - HTTP2Request: Request interface compatibility layer - Wraps HTTP2Stream for worker consumption - HTTP2Body provides file-like interface for request body - Converts HTTP/2 pseudo-headers to standard attributes - Transforms lowercase headers to uppercase for WSGI - Adds HOST header from :authority pseudo-header - HTTP2ServerConnection: h2 library integration - Lazy import of h2 for graceful degradation - Connection initialization with configurable settings - Stream management for concurrent requests - Event handling for HEADERS, DATA, RST_STREAM, GOAWAY - Response sending with proper frame generation - Flow control window management with chunked data sending - get_parser() extension for HTTP/2 dispatch