v0.10.0
These are all the changes since v0.9.5 combined:
- Breaking change: Upgraded to Hyper 1.0.
- Breaking change: The top-level
resolve*
functions are now methods on a new typeResolver
. - Breaking change:
ResolveResult::Found
now contains aResolvedFile
, a new struct replacing the old unnamed tuple parameters. - Breaking change: The
FileBytesStream
andFileResponseBuilder
exports have moved to autil
submodule. - A filesystem abstraction was added. Different backing can now be implemented using traits from the
vfs
submodule.- Breaking change:
Static
,ResolveResult
,util::FileBytesStream
,util::FileBytesStreamRange
,util::FileBytesStreamMultiRange
are now generic over traits from thevfs
submodule. The type parameters have defaults set for the Tokio implementation, which should make migration effortless in many cases. - A
MemoryFs
was added, which allows serving files efficiently from memory, and preloading an entire directory into memory.
- Breaking change:
- Added
Static::allowed_encodings
, which can be used to serve precompressed.br
and.gz
files if a client requests them with theAccept-Encoding
header. - Added
Resolver::set_rewrite
, which allows rewriting a request before the filesystem is accessed.