HttpHandlers and HttpModules
This is the 13th of the series, in fact, so far you should have a certain grasp of the overall design of blogengine.net, the partial realization of the details have a more profound understanding, in reading BlogEngine.NET hope to adhere to the last, and hold the macro, in-depth to micro. In this article, we will introduce the httphandlers and httpmodules in BlogEngine.NET, explain the functions they want to implement and how to use them, and make a detailed analysis of some httphandler or httpmodule that are necessary.
HttpHandler and HttpModule
For HttpHandler and HttpModule I do not want to say more, because they explain the article is too much too much, we can look for in the blog Park directly input "HttpHandler and HttpModule" can be found. My understanding is a HttpHandler to implement IHttpHandler interface, mainly to a request for direct processing, a HttpModule to implement IHttpModule interface, The request and response are filtered primarily in the event of the HttpApplication lifecycle. They can all be configured in the Web.config file.
The HttpHandler in the BlogEngine.NET
The HttpHandler in the blogengine.net is in BlogEngine.Core.Web.HttpHandlers space (except for Metawebloghandler, which is not included here), and through web.config we can see their Mapping Relationship:
httphandlers Mapping Table
<add verb= "*" path= "File.axd" type= "BlogEngine.Core.Web.HttpHandlers.FileHandler" Blogengine.core "validate=" False "/>
<add verb= "*" path= "Image.axd" type= "BlogEngine.Core.Web.HttpHandlers.ImageHandler" Blogengine.core "validate=" False "/>
<add verb= "*" path= "Syndication.axd" type= "BlogEngine.Core.Web.HttpHandlers.SyndicationHandler, Blogengine.core "Validate= false"/>
<add verb= "*" path= "Sitemap.axd" type= "BlogEngine.Core.Web.HttpHandlers.SiteMap" Blogengine.core "validate=" False "/>
<add verb= "*" path= "Trackback.axd" type= "BlogEngine.Core.Web.HttpHandlers.TrackbackHandler, Blogengine.core" Validate= "false"/>
<add verb= "*" path= "Pingback.axd" type= "BlogEngine.Core.Web.HttpHandlers.PingbackHandler, Blogengine.core" Validate= "false"/>
<add verb= "*" path= "Opensearch.axd" type= "BlogEngine.Core.Web.HttpHandlers.OpenSearchHandler, Blogengine.core" Validate= "false"/>
<add verb= "*" path= "Metaweblog.axd" type= "BlogEngine.Core.API.MetaWeblog.MetaWeblogHandler, Blogengine.core" Validate= "false"/>
<add verb= "*" path= "Rsd.axd" type= "BlogEngine.Core.Web.HttpHandlers.RsdHandler", Blogengine.core "validate=" false "/>
<add verb= "*" path= "Css.axd" type= "BlogEngine.Core.Web.HttpHandlers.CssHandler", Blogengine.core "validate=" false "/>
<add verb= "*" path= "Js.axd" type= "BlogEngine.Core.Web.HttpHandlers.JavaScriptHandler, Blogengine.core" validate= "False"/>
<add verb= "*" path= "Rating.axd" type= "BlogEngine.Core.Web.HttpHandlers.RatingHandler, Blogengine.core" validate= "False"/>
<add verb= "*" path= "Opml.axd" type= "BlogEngine.Core.Web.HttpHandlers.OpmlHandler" Blogengine.core "validate=" False "/>
<add verb= "*" path= "Blogml.axd" type= "BlogEngine.Core.Web.HttpHandlers.BlogMLExportHandler, Blogengine.core" Validate= "false"/>
<add verb= "*" path= "Sioc.axd" type= "BlogEngine.Core.Web.HttpHandlers.Sioc", Blogengine.core "validate=" false "/ >
<add verb= "*" path= "Apml.axd" type= "BLOGENGINE.CORE.WEB.HTTPHANDLERS.APML", Blogengine.core "validate=" false "/ >
<add verb= "*" path= "Foaf*.axd" type= "BlogEngine.Core.Web.HttpHandlers.Foaf", Blogengine.core "validate=" false "/ >