Files
responder/docs
kennethreitz 737026fc72 Add range requests, downloads, request timeouts, and route caching
- resp.file() and resp.stream_file() answer Range: bytes=... with 206
  Partial Content (suffix/open-ended ranges, 416 for unsatisfiable,
  Accept-Ranges advertised) — enables video seeking and resumable
  downloads; stream_file seeks rather than reading the whole file
- resp.download(path, filename=...) serves attachments with proper
  Content-Disposition (RFC 5987 for non-ASCII names), resumable
- API(request_timeout=seconds) answers overrunning handlers with a
  content-negotiated 504; dependency teardowns still run
- Route resolution cached per (method, path), invalidated on route
  registration, path params copied per request to prevent cache
  poisoning — ~10% faster dispatch at 81 routes

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-11 23:57:15 -04:00
..
2018-10-11 12:59:27 -04:00
2018-10-11 12:59:27 -04:00