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§
- Data
UriLayer - Serve
data:request URIs from the URI itself. - Data
UriService - Serve
data:request URIs from the URI itself. - File
UriLayer - Serve
file://request URIs from the local filesystem. - File
UriService - Serve
file://request URIs from the local filesystem.