Module tower_http::timeout
source · Available on crate feature
timeout
only.Expand description
Middleware for setting timeouts on requests and responses.
Structs
Applies a
TimeoutBody
to the request body.Applies a
TimeoutBody
to the request body.Applies a
TimeoutBody
to the response body.Applies a
TimeoutBody
to the response body.Middleware which apply a timeout to requests.
Wrapper around a
http_body::Body
to time out if data is not ready within the specified duration.Error for
TimeoutBody
.Layer that applies the
Timeout
middleware which apply a timeout to requests.