什么是Http模块和Http Handler? [英] What is Http Module and Http Handler?

查看:65
本文介绍了什么是Http模块和Http Handler?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是Http模块和Http Handler?

What is Http Module and Http Handler?

推荐答案

HTTP Handler

HTTP Handler is the process which runs in response to a HTTP request. So whenever user requests a file it is processed by the handler based on the extension. So, custom http handlers are created when you need to special handling based on the file name extension. Let's consider an example to create RSS for a site. So, create a handler that generates RSS-formatted XML. Now bind the .rss extension to the custom handler.

HTTP Modules

HTTP Modules are plugged into the life cycle of a request. So when a request is processed it is passed through all the modules in the pipeline of the request. So generally http modules are used for:

Security: For authenticating a request before the request is handled.

Statistics and Logging: Since modules are called for every request they can be used for gathering statistics and for logging information.





资料来源: http: //www.c-sharpcorner.com/blogs/7116/difference-between-asp-net-httphandler-and-httpmodule.aspx [ ^ ]


在问这个问题之前你为什么不用Google搜索?

看看这个:



两个拦截器:HttpModule和HttpHandlers [ ^ ]



希望它有所帮助:D
why didn''t you googled first, before asking the question?
have a look at this:

The Two Interceptors: HttpModule and HttpHandlers[^]

hope it helps :D


有关HTTP模块和HTTP处理程序的概述,请查看以下链接。< br $> b $ b

HTTP模块&安培;处理程序



实施HTTP模块和HTTP请通过以下链接



HTTP模块的实现&处理程序



希望这些能帮到你!!



谢谢

Naveen
For overview of HTTP Module and HTTP Handler, have a look on below link.

HTTP Module & Handler

To Implement HTTP Module and HTTP go through below link

Implementation of HTTP Module & Handler

Hope these will help you!!

Thanks
Naveen


这篇关于什么是Http模块和Http Handler?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆