Skip to main content

Module file

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§

FileUriLayer
Serve file:// request URIs from the local filesystem.
FileUriService
Serve file:// request URIs from the local filesystem.