Module file
Available on crate features
http and std only.Expand description
Serve file:// request URIs from the local filesystem.
A client stack layered with FileUriLayer answers file:// requests
itself and passes every other scheme to the inner service, so one client
serves both local and remote URIs.
Place this layer outside any
FollowRedirectLayer:
redirects are followed by the inner service, so a remote response can never
redirect into the local filesystem.
Structs§
- File
UriLayer - Serve
file://request URIs from the local filesystem. - File
UriService - Serve
file://request URIs from the local filesystem.