HttpHandler

HttpHandler

An abstract class that represents an HTTP Handler

Constructor

(abstract) new HttpHandler()

Source:

Methods

authenticateRequest(context, callback)

Occurs when a handler is going to set current user identity.
Parameters:
Name Type Description
context HttpContext
callback function
Source:

authorizeRequest(context, callback)

Occurs when a handler has verified user authorization.
Parameters:
Name Type Description
context HttpContext
callback function
Source:

beginRequest(context, callback)

Occurs as the first event in the HTTP execution
Parameters:
Name Type Description
context HttpContext
callback function
Source:

endRequest(context, callback)

Occurs as the last event in the HTTP execution
Parameters:
Name Type Description
context HttpContext
callback function
Source:

mapRequest(context, callback)

Occurs when the handler is selected to respond to the request.
Parameters:
Name Type Description
context HttpContext
callback function
Source:

postExecuteResult(context, callback)

Occurs when application was succesfully executes an HTTP Result.
Parameters:
Name Type Description
context HttpContext
callback function
Source:

postMapRequest(context, callback)

Occurs when application has mapped the current request to the appropriate handler.
Parameters:
Name Type Description
context HttpContext
callback function
Source:

preExecuteResult(context, callback)

Occurs when application starts executing an HTTP Result.
Parameters:
Name Type Description
context HttpContext
callback function
Source:

processRequest(context, callback)

Occurs when application starts processing current HTTP request.
Parameters:
Name Type Description
context HttpContext
callback function
Source:

validateRequest(context, callback)

Occurs when a handler is going to validate current HTTP request.
Parameters:
Name Type Description
context HttpContext
callback function
Source: