Skip to main content

Module request

Module request 

Available on crate features http and std only.
Expand description

Add the Host and User-Agent headers to a request, if they are missing.

See AddRequiredRequestHeaders for the exact behaviour.

Structs§

AddRequiredRequestHeaders
Middleware that adds the Host and User-Agent headers to a request before passing it to the inner service.
AddRequiredRequestHeadersLayer
Layer that wraps a service in AddRequiredRequestHeaders.