April 2014
Intermediate to advanced
428 pages
11h 21m
English
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 ... |
Read now
Unlock full access