0.4.0
Phase 4 — Compression, Server-Timing, dev reload, httptools backend
Highlights
- Zstd compression — Zero-dependency content-encoding via Python 3.14 stdlib (PEP 784)
- Server-Timing headers — Auto-injected parse/app/encode durations for browser DevTools
- Dev reload —
--reloadflag with file watcher for automatic worker restart - httptools backend — Optional C-accelerated HTTP/1.1 parsing via
pounce[fast]
Added
- Content-encoding negotiation:
zstd > gzip > identity Server-Timingheader injection with per-request timing--reloadflag for development (watches source files, restarts workers)- httptools backend for HTTP/1.1 (
pounce[fast]extra) compression_min_sizeconfiguration option- Streaming compression for chunked responses
Status
- 31 source modules
- 426 tests passing
- HTTP/1.1, HTTP/2, WebSocket, TLS, multi-worker
- Full ASGI 3.0 compliance
Install
uv add "bengal-pounce==0.4.0"