HttpContext

The ASP.NET Core object holding everything about the current HTTP request and response, including the user, headers, path and request services.

In more detail

A new one is created for every request and discarded when the response is complete. Middleware and endpoints read the request from it and write the response to it; authentication puts the user's claims on it.

Related terms

Taught in

References