The HttpContext Class

During the various steps of the request's chain of execution, an object gets passed along from class to class—this object is the HttpContext object. HttpContext encapsulates all the information available about an individual HTTP request that ASP.NET is going to handle. The HttpContext class is instantiated by the HttpRuntime object while the request processing mechanism is being set up. Next, the object is flowed throughout the various stages of the request's lifetime, as Figure 14-3 demonstrates.

The HttpContext object, which encapsulates all the request information and is passed along through the HTTP pipeline until the client response is generated.

Figure 14-3. The HttpContext object, which encapsulates all the request information and is passed along through the HTTP pipeline ...

Get Programming Microsoft® ASP.NET 3.5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.