JaneApex
京洛多風塵 素衣化為緇
 

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.

posted on 2006-10-24 23:58  JaneApex  阅读(102)  评论(0)    收藏  举报