Request Context
Noun · Development
Definitions
A per-request object or scope that carries metadata associated with the current HTTP request — such as the authenticated user, request ID, locale, database connection, and tracing span — and is accessible throughout the handler chain without passing it explicitly as function arguments. Flask, Express, and Go's context.Context all implement variations of this pattern.
In plain English: A container of information about the current web request that travels along with it so any part of the code handling that request can access details like who the user is.
Example: "The authentication middleware sets the user on the request context, and every downstream handler can read it without an extra parameter."