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.