mirror of
https://github.com/kennethreitz/responder.git
synced 2026-07-21 18:39:29 +00:00
9f20890ea3
- api.dependency_overrides(**kw): context manager test seam; bare values or provider callables; request-scoped so it replaces+bypasses cached app deps; auto-restores. Merged into the scope registry in the router. - Health checks: add_health_check(name, check) + API(health_route=...); async aggregate returns 200/503 with per-check JSON; route excluded from OpenAPI. - File conditional requests: resp.file()/stream_file()/download() set a stat-based weak ETag + Last-Modified by default (304 via the existing machinery; file() skips the whole-file md5 under auto_etag). conditional= opt-out. Range requests unaffected. - Named routes: name= on route()/verb decorators/add_route, threaded through Route/WebSocketRoute; url_for() does a name-first lookup (fixes lambda/ shared-name reversal). - Docs: testing (overrides + named routes) and health checks. Backwards-compatible. 523 tests pass; ruff + mypy clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>