pub async fn call_handler<T>(
) -> Result<Response<Body>> where
T: NewHandler + Send + UnwindSafe,
Handler from the given
NewHandler, and invokes it with the request. If a
panic occurs from
Handler::handle, it is trapped and will result
500 Internal Server Error response.
Timing information is recorded and logged, except in the case of a panic where the timer is moved and cannot be recovered.