pub fn timeout_response_layer(timeout: Duration) -> TimeoutResponseLayerExpand description
Creates a timeout layer that maps elapsed inner work to 408 Request Timeout.
If the inner service completes before timeout, its response is returned
unchanged. If the timeout elapses first, the response is 408 Request Timeout with a plain-text request timed out body.