- Added optional encrypted sessions.
- Added nanoserde support. Thanks @alexwennerberg!
- Multiple cookies work now. Thanks @sigaloid!
- Added
Request.remote_addr
. Thanks @sigaloid and @CuriouslyCurious! - Fixed asset bundling in release mode. Thanks @ggsvr!
- Tests now work on Windows. Thanks @JEBailey!
- Changed
ASSET_DIR
to store aString
instead of&'static str
, meaning it can now be set dynamically when your Vial app starts.
-
Added a lot more content types thanks to Mozilla.
-
Fixed parsing of HTTP headers with the same name. An HTTP client can now send "Accept: image/gif\r\nAccept: image/jpeg\r\n" and Vial will will return "image/gif, image/jpeg" from
request.header("Accept")
.For more information see RFC2616:
https://greenbytes.de/tech/webdav/rfc2616.html#message.headers
- Added optional
cookies
feature.
- Fix user agent timeout on empty response body.
- Fix date format in HTTP response.
Thanks to https://redbot.org and @tdryer for this release!
- Added optional
json_serde
feature with support for JSON viaRequest::json
thanks to @tdryer! - Removed the
state
feature. Global state is built-in. - Added basic support for Hatter HTML templates.
- Fix routing paths with fewer parts than a pattern.
- Removed the dependency on percent-encoding. Now Vial has only two direct dependencies and four total.
- Hatter now rejects headers that are over 8KB in total.
- Minor changes to HTTP header generation.
- Any panic! in app code is now converted into an error page.
- You can now disable or set your own startup banner to show in the console.
This release fixes a few small bugs in error handling and HTTP parsing.
This is the first public release of Vial, a micro micro-framework for the Rust programming language.
For an overview, please see the manual or the README.
Enjoy.