HttpRuntime是一個元件,會建立HttpContext物件,
HttpContext物件內含完整的網頁資訊,並且利用Request,
Response, Server等物件來取得其內容。
然後這個request來到了HttpApplication(a .NET component named) HttpApplication會建立HTTP modules(.NET元件管線),以進行前置運算,如authentication and authorization,並將結果回存到HttpContext物件中。
當HTTP modules處理這些request時, HttpApplication會把處理好的request送給HTTP handler(a component). HTTP handler主要負責產生標籤語言,然後requester當成是response的一部分.
不同的HTTP handlers產一不同的標籤語言.如處理.aspx頁面時,會產生HTMLgenerate different types of markup texts. For example, the HTTP標籤語言;處理.asmx則產生XML標籤語言.
所以ASP.NET即是初使化適當的Http Handler來為特殊的extention(.aspx,asmx)處理request.
浙公网安备 33010602011771号