gunicorn/examples/http2_features/gunicorn_conf.py
Benoit Chesneau fa5e319f15 docs(http2): add ASGI example demonstrating priority and trailers
Add complete HTTP/2 example in examples/http2_features/:
- ASGI app showing priority access and trailer sending
- Test script using raw h2 library for HTTP/2 testing
- Docker setup for easy testing
- Documentation update referencing the example

The example demonstrates:
- Reading http.response.priority extension in ASGI scope
- Sending http.response.trailers messages
- Multiple streams on the same connection
2026-01-27 13:15:36 +01:00

21 lines
429 B
Python

# Gunicorn configuration for HTTP/2 features example
bind = "0.0.0.0:8443"
workers = 2
worker_class = "asgi"
# SSL configuration (required for HTTP/2)
certfile = "/app/certs/server.crt"
keyfile = "/app/certs/server.key"
# HTTP/2 configuration
http_protocols = "h2,h1"
http2_max_concurrent_streams = 100
http2_initial_window_size = 65535
http2_max_frame_size = 16384
# Logging
accesslog = "-"
errorlog = "-"
loglevel = "info"