mirror of
https://github.com/kennethreitz/responder.git
synced 2026-06-21 15:00:57 +00:00
737026fc72
- 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>