Files
responder/docs
kennethreitz 9f20890ea3 v5.4: dependency_overrides, health checks, file conditionals, named routes
- 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>
2026-06-28 20:30:34 -04:00
..
2018-10-11 12:59:27 -04:00
2018-10-11 12:59:27 -04:00