General handler 2 Overall request details

Source: Internet
Author: User

 

Detailed description of the overall request Diagram

 

① The browser accesses the server over the network and the server software accepts the request.

② Server softwareIISThe suffix cannot be processed.AsxhThe request is forwarded to the server extension through the ing table.ProgramOneASP. net_isapi.dllProgram.

③ The extensible program is just a bridge, and the request is sent to the website program, the website program callsHttpruntime.

④ YesHttpruntimeClass to complete all request work

4.1Analyze the request message and encapsulate the request message data toHttpworkrequestClass Object.

4.2By callingHttpapplicationfactoryClass, createHttpapplicationObject, each timeHttpapplicationfactoryAllHttpapplicationFind in the pool, if there is no idleHttpapplicationObject To create a new object and use it directly if any.

4.3CreateHttpcontextObject, which is the request Context Environment and contains all the parameter data for processing the request, the most important of which isHttprequestAndHttpresponseObjects of two classes.

4.3.1 httprequestIt mainly contains all request information, which comes fromHttpworkrequestInclude attributes,Form(Customer form data)Querystring(ClientURLParameters)

4.3.2 httpresponseMainly includesFilestreamObject, used to save the data output to the browser during page class execution.

4.4Because inHttpapplicationTo runProcessrequestMethod, so you needHttpcontextUploadHttpapplication.HttpapplicationOfProcessrequestThe method execution process can be seen as a pipeline, which must be executed successively.19Delegated events.8Event, create the object of the request page class, in11And12Between events, the executed page classProcessrequestMethod.

 

 

Related Article

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.