dispatch


Description:

[ Version ( since = "0.3" ) ]
protected bool dispatch (Request req, Response res) throws Error

Dispatch the request to the application callback.

The application must call Response.write_head at some point.

Once dispatched, the Response.head_written property is expected to be true unless its reference still held somewhere else and the return value is 'true'.

Returns:

true if the request and response were dispatched