Skip to main content

Module uri

Module uri 

Available on crate features http and std only.
Expand description

Serve non-network request URIs from a client stack.

file: and data: uris carry their content locally, so these layers answer them and pass every other scheme to the inner service — one client then serves local and remote uris alike.

Place them outside any FollowRedirectLayer: redirects are followed by the inner service, so a remote response can never redirect into the local filesystem.

Modules§

data
Serve data: request URIs from the URI itself (RFC 2397).
file
Serve file:// request URIs from the local filesystem.

Structs§

DataUriLayer
Serve data: request URIs from the URI itself.
DataUriService
Serve data: request URIs from the URI itself.
FileUriLayer
Serve file:// request URIs from the local filesystem.
FileUriService
Serve file:// request URIs from the local filesystem.