HttpHandlers
Whereas HttpModules are designed to participate in the processing of a request, HttpHandlers are designed to be the endpoint for the processing of a request. As mentioned earlier, an HttpHandler provides a way to define new page processors that handle new types of programming models. Table 8.1 shows the HttpHandlers provided by ASP.NET.
HttpHandler | Purpose |
---|---|
PageHandlerFactory | Processes .aspx pages. |
WebServiceHandlerFactory | Processes .asmx XML Web services. |
HttpForbiddenHandler | Yields an error message indicating that a type of page is not in service. By default, all .asax, .vb, .cs, .ascx, .config, .csproj, .vbproj, and .webinfo files are mapped to this in machine.config. |
StaticFileHandler |
Get C#® Developer's Guide to ASP.NET, XML, and ADO.NET now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.