This method is invoked per request to allow wrapping around the entire request/response functionality.
the request that is being handled
the function to manage the request / response process.
Called once when the application is terminating (not guaranteed to be executed).
The frequency the application will be updated in seconds.