Overview
Gunicorn 25.0, released on February 1, 2025, adds experimental HTTP/2 support via a new protocol layer.
Main Features
HTTP/2 beta
HTTP/2 support enables request multiplexing, header compression, and server push. This feature is in beta and requires TLS configuration.
python
# HTTP/2 beta with TLS
# gunicorn --worker-class h2 --certfile cert.pem \
# --keyfile key.pem app:app
# gunicorn.conf.py
bind = '0.0.0.0:443'
workers = 4
worker_class = 'h2' # HTTP/2 beta
certfile = 'cert.pem'
keyfile = 'key.pem'
