⬆️ Bumped the minimum compiler version tested by CI to 1.56 - this is necessary due to an increasing number of dependencies introducing Cargo manifest features only supported on newer versions of Rust.
Thanks to @ColonelThirtyTwo for adding support for binding to UNIX sockets when creating a tiny-http server. This change makes a few small breaking API modifications, if you are constructing
ServerConfigmanually you will need to use the new
ListenAddrtype rather than directly supplying a
Server::server_addr()will now return an enum that can represent either a TCP socket or a UNIX socket.
Request::remote_addr()now returns an
Option<&SocketAddr>as UNIX sockets don't ever have a remote host.
@esheppa replaced our internal HTTPDate type with the
httpdatelibrary (used extensively in the community by Hyper, Tokio and others) which reduces our baseline dependency tree from 18 crates to 5!
TestRequest::pathno longer has a
'staticbound, allowing for fuzzers to generate test request paths at runtime.
zeroizeso it can float around any stable
Thanks to @3xmblzj5 and @travispaul for their help in implementing
Rustlsas a drop-in replacement for OpenSSL, you can now build
tiny-httpwith TLS support without any external dependencies! OpenSSL will remain the default implementation if you just enable the
sslfeature, but you are strongly encouraged to use
Fix a longstanding bug where we were only loading the first (i.e. the leaf) certificate from any PEM file supplied by the user.
chronowas only used to store and format
DateTimeinto the slightly odd format required by RFC 7231, so to avoid the numerous RUSTSEC advisories generated by the
localtime_rissue, we can just drop it entirely and switch to
time-rs. Unfortunately this means we need to bump our minimum tested compiler version to 1.51, and as such this change requires a full minor release.
This isn't an API change, but does result in different behaviour to 0.8.2 and so justifies a minor version bump.
HTTP requests now return a boxed
FusedReaderwhich drops the underlying reader once it reaches EOF, such that the reader no longer needs to be explicitly consumed and the server may now respond with e.g. a "413 Payload too large" without waiting for the whole reader.
- ⬆️ Bumped the minimum compiler version tested by CI to 1.48 (the version supported in Debian Bullseye)
- Fix RUSTSEC-2020-0031
- Filter out the same socket-closing errors on flush as on write
- response: Drop the use of EqualReader for TransferEncoding::Identity
- Add unblock method for graceful shutdown
- Response: Don't forget
- Response: Allow manual handling of Range requests
- Feature | Getters for Response Status Code & Data Length Properties