Apply the handler on the request and response.
the return value of the callback if set, otherwise 'false'