Update settings.md for simplified http_parser options

This commit is contained in:
Benoit Chesneau 2026-03-22 08:09:35 +01:00
parent e8150e27b2
commit 8ad49b8df3

View File

@ -1978,14 +1978,16 @@ This setting only affects the ``asgi`` worker type.
**Default:** `'auto'`
HTTP parser implementation.
HTTP parser implementation for ASGI workers.
- auto: Use gunicorn_h1c if available, otherwise pure Python (default)
- fast: Require gunicorn_h1c C extension (fail if unavailable)
- python: Force pure Python parser
- auto: Use H1CProtocol if gunicorn_h1c is available, else PythonProtocol (default)
- fast: Require H1CProtocol from gunicorn_h1c (fail if unavailable)
- python: Force pure Python PythonProtocol parser
The gunicorn_h1c C extension provides significantly faster HTTP
parsing using picohttpparser with SIMD optimizations. Install it
with: pip install gunicorn[fast]
ASGI workers use callback-based parsing in data_received() for efficient
incremental parsing. The gunicorn_h1c C extension provides significantly
faster HTTP parsing using picohttpparser with SIMD optimizations.
Install it with: pip install gunicorn[fast]
!!! info "Added in 25.0.0"