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::Foundnow contains aResolvedFile, a new struct replacing the old unnamed tuple parameters. - Breaking change: The
FileBytesStreamandFileResponseBuilderexports have moved to autilsubmodule. - A filesystem abstraction was added. Different backing can now be implemented using traits from the
vfssubmodule.- Breaking change:
Static,ResolveResult,util::FileBytesStream,util::FileBytesStreamRange,util::FileBytesStreamMultiRangeare now generic over traits from thevfssubmodule. The type parameters have defaults set for the Tokio implementation, which should make migration effortless in many cases. - A
MemoryFswas 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.brand.gzfiles if a client requests them with theAccept-Encodingheader. - Added
Resolver::set_rewrite, which allows rewriting a request before the filesystem is accessed.