Glossary coding Term Page
Request scope
The lifetime of a single HTTP request
Core Idea
Request scope is The lifetime of a single HTTP request. Dependencies run once per request and FastAPI caches their results for that request before cleaning up. It usually makes the most sense alongside Dependency injection, Sub-dependency, Bearer token.
Why It Matters Here
Mathbong reuses this term across fastapi posts as shared vocabulary.