what is HTTPModule and HttpHandler(http://forums.asp.net/p/1011421/1350924.aspx#1350924)
来源:互联网 发布:qsdd源码 编辑:程序博客网 时间:2024/05/23 13:24
http://forums.asp.net/p/1011421/1350924.aspx#1350924
An ASP.NET HTTP handler is the process (frequently referred to as the "endpoint") that runs in response to a request made to an ASP.NET Web application. The most common handler is an ASP.NET page handler that processes .aspx files. When users request an .aspx file, the request is processed by the page through the page handler. You can create your own HTTP handlers that render custom output to the browser.
An HTTP module is an assembly that is called on every request that is made to your application. HTTP modules are called as part of the ASP.NET request pipeline and have access to life-cycle events throughout the request. HTTP modules let you examine incoming and outgoing requests and take action based on the request.
Typical uses for custom HTTP handlers include the following:
RSS feeds To create an RSS feed for a Web site, you can create a handler that emits RSS-formatted XML. You can then bind a file name extension such as .rss to the custom handler. When users send a request to your site that ends in .rss, ASP.NET calls your handler to process the request.
Image server If you want a Web application to serve images in a variety of sizes, you can write a custom handler to resize images and then send them to the user as the handler's response.
Typical uses for HTTP modules include the following:
Security Because you can examine incoming requests, an HTTP module can perform custom authentication or other security checks before the requested page, XML Web service, or handler is called. In Internet Information Services (IIS) 7.0 running in Integrated mode, you can extend forms authentication to all content types in an application.
Statistics and logging Because HTTP modules are called on every request, you can gather request statistics and log information in a centralized module, instead of in individual pages.
Custom headers or footers Because you can modify the outgoing response, you can insert content such as custom header information into every page or XML Web service response.
- what is HTTPModule and HttpHandler(http://forums.asp.net/p/1011421/1350924.aspx#1350924)
- ASP.NET (HttpModule,HttpHandler)
- ASP.NET (HttpModule,HttpHandler)
- ASP.NET的(HttpModule,HttpHandler)
- ASP.NET的(HttpModule,HttpHandler)
- ASP.NET的(HttpModule,HttpHandler
- ASP.NET的(HttpModule,HttpHandler)
- ASP.NET---HttpHandler 和 HttpModule
- ASP.NET必须知道的:HttpModule,HttpHandler
- Asp.net 中HttpHandler,HttpModule,IHttpHandlerFactor [一]
- ASP.NET必须知道的:HttpModule,HttpHandler
- ASP.NET中的HttpModule和HttpHandler
- ASP.NET页面执行顺序 (HttpModule,HttpHandler)
- ASP.NET必须知道的:HttpModule,HttpHandler
- Asp.Net中的HttpModule和HttpHandler
- ASP.NET-自定义HttpModule与HttpHandler介绍
- ASP.Net 运行机制以及HttpModule和HttpHandler
- 防止按f5刷新页面时,事件再执行(from:http://forums.asp.net/t/1484840.aspx)
- ADSL 上网只需改一个值,网上加快宽带速度
- jqueryTab 的应用
- 设置Eclipse快捷提示方式
- PHP的MSSql的操作类
- php函数前面加&符号 和 变量前面加&符号的意义
- what is HTTPModule and HttpHandler(http://forums.asp.net/p/1011421/1350924.aspx#1350924)
- 2011年2月11日~12日:DB4O的学习
- jsp导出excel身份证过长导致显示不正常自定义单元格格式解决方法
- 2299-Ultra-QuickSort-交换相邻两个数排序-求逆序对个数-合并排序
- 分析函数之分析语句学习--Over(Analytic_clause)
- oracle11g 日志alter文件位置
- 自定义android控件EditText 自定义边框 背景
- 做一个合格的管理者
- sql优化