HandlerCallback
Description:
[ Version ( since = "0.1" ) ]
public delegate bool HandlerCallback (Request req, Response res, NextCallback next, Context context) throws Error
Handle a pair of request and response.
Parameters:
req |
request being handled |
res |
response to send back to the requester |
next |
continuation to keep routing |
context |
routing context which parent is the context of the preceeding 'next' invocation or initialized by the first Valum.MatcherCallback |
Returns:
'true' if the request has been or will eventually be handled, otherwise 'false' |
Exceptions:
Error |
callback are free to raise any error |
Namespace: Valum
Package: valum-0.3