ASP. NET pipeline event with HttpModule, HttpHandler simple understanding

Source: Internet
Author: User

BeginRequest Indicates that the request processing started
AuthenticateRequest Encapsulating the request authentication process
AuthorizeRequest Encapsulates the process of checking whether a previously cached output page can be used to process requests
Resolverequestcache Get triggered from the cache at the appropriate time
AcquireRequestState triggered when the initialization session is loaded
PreRequestHandlerExecute Triggered before an HTTP request enters HttpHandler
PostRequestHandlerExecute Triggered after an HTTP request enters HttpHandler
ReleaseRequestState Triggers when the session state is stored
Updaterequestcache Triggers when cache information is updated
EndRequest triggered when HTTP request processing is complete
Presendrequesthenaders Triggered before the header is sent to the client
Presendrequestconternt Triggered before content is sent to the client

Name

Describe

BeginRequest

The BeginRequest event is triggered when the HTTP pipeline starts processing the request

Authenticaterequest,postauthenticaterequest

Asp. NET successively triggers these two events to enable the security module to authenticate the request

Authorizerequest,postauthorizerequest

Asp. NET triggers both events, enabling the security module to authorize the request process

Resolverequestcache,postresolverequestcache

Asp. NET has triggered both events so that the cache module leverages the cached direct process response to the request (the cache module can cache the response content process and, for subsequent requests, directly return the cached content, thereby improving responsiveness).

Postmaprequesthandler

For access to different resource types, ASP. NET has different HttpHandler for its process processing. For each request, ASP. NET chooses to match the corresponding HttpHandler type through the extension, and the implementation is triggered after a successful match

Acquirerequeststate,postacquirerequeststate

Asp. NET successively triggers these two events so that the state management module gets the corresponding state based on the current request, such as sessionstate

Prerequesthandlerexecute,postrequesthandlerexecute

Asp. NET finally through a request resource type corresponds to the HttpHandler implementation of the request processing, before and after the implementation of HttpHandler, these two implementations are triggered successively

Releaserequeststate,postreleaserequeststate

Asp. NET triggers both events so that the state Management module releases the corresponding state based on the current request

Updaterequestcache,postupdaterequestcache

Asp. NET has triggered both events so that the cache module saves the HttpHandler processing request to the output cache

Logrequest,postlogrequest

Asp. NET successively triggers both events for the current request process logging

EndRequest

The endrequest event is triggered when the entire request process is complete

Reference Original: http://blog.csdn.net/sundacheng1989/article/details/9995263

ASP. NET pipeline event with HttpModule, HttpHandler simple understanding

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.