CHAPTER 5
Handlers
Handlers are responsible for generating the response content for an HTTP request. In this chapter, I explain how handlers generate content, demonstrate how to create custom handlers, and show you how modules can provide services to handlers. Table 5-1 summarizes this chapter.
Table 5-1. Chapter Summary
Problem |
Solution |
Listing |
---|---|---|
Create a handler. |
Implement the IHttpHandler interface. |
|
Register a handler using a URL route. |
Create an implementation of the IRouteHandler interface that returns the handler from its GetHttpHandler method and use it as an argument to the RouteCollection.Add method. |
|
Register a handler using ... |
Get Pro ASP.NET MVC 5 Platform 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.