Outline

Overview HttpContext

What is the HTTPContext?

  • Encapsulates all HTTP-specific information about an individual HTTP request

Why do we need it?

  • It has a Dictionary of Items
  • In particular, we need access to
    • User Information
    • JSON Web Token

In the next demo, we’ll put some code in place that will give us easy access to the famous HTTP Context.

Resources:

  • https://docs.microsoft.com/en-us/aspnet/core/fundamentals/http-context?view=aspnetcore-5.0
  • https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.httpcontext?view=aspnetcore-5.0
  • https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.http.httpcontext.items?view=aspnetcore-5.0#Microsoft_AspNetCore_Http_HttpContext_Items
 

I finished! On to the next chapter