Releases: bohdaq/rust-tls-server
16.1.0
16.0.0
16.0.0
- Resolving .html files without .html in path. If you try to open /folder it will open file folder/index.html
- Caching done right. It means no caching and therefore no outdated uncontrollable resources.
15.1.0
- Added thread id to log messages
- Added tests for controllers
- New feature - resolving .html files without .html in path. It means if you try to open /some-html-file it will open file some-html-file.html and won't show 404 not found error
- New feature - opening static resources with url search params. Previously server returned 404 not found response if request contains query string parameters /some-html-file?some=param&another for example
14.0.0
- Added documentation for Range module
- Added functionality to parse response with custom boundary (previously worked only with hardcoded one)
- Added proper error handling while parsing malformed multipart response (missing starting or ending boundary)
- Added
build
method toResponse
13.0.0
- Added
Application
andController
traits - Added
Base64
implementation - Updated existing controllers to implement
Application
andController
traits. - Updated
Server
module - Added and updated documentation
- Updated dependencies to latest versions
- Added
URL
module - Added
get_domain
,get_path
andget_port
methods toRequest
- Added and updated tests
12.0.0
Partially added documentation.
Added examples on how to use Request, Response, and Header.
- Response has a new method
generate
- Response has a new method
parse
- Response has a new method
get_header
- Request has a new method
parse
- Request has a new method
generate
- Range has a new method
parse_multipart_body
- Header has a new method
parse
- Header has a new method
generate
- FormUrlEncoded has a new method
generate
Response parse
method returns a result, previously used method _parse_response
was falling silently in case of a malformed response. Now developers can use the result to handle errors. Same with parse_multipart_body
in Range, previously used method _parse_multipart_body
was falling silently in the case of a malformed multipart body.
11.0.1
Added support for JSON processing.
Added fn float_number_with_precision(number: f64, number_of_digits: u8) -> String
to StringExt
to display float number with specified precision.
Updated rust compiler version to 1.68
10.0.0
- Form submission processing using method POST and Url Encoded Enctype. Take a look at the controller on how to use it.
- Form submission processing using method GET and without Enctype specified. Take a look at the controller on how to use it.
- Form submission processing using method Post and Multipart Enctype. Take a look at the controller on how to use it.
- Rust version 1.67
There are a lot of examples on how to use new functionality in tests and sample form.
Checkout changelist
9.0.0
Updated rust-web-server to 9.0.0
Added support for symlinks.
In practice, it means you can have a link to file link --> file.html
and request this resource via regular HTTP GET /link
request. Response will contain the properly set Content-Type based on file extension.
Added Sec-CH-Prefers-Reduced-Motion and Sec-CH-Prefers-Color-Scheme support to Accept-CH.
Added Critical-CH header.
Added request and response logging to server output.
Added info on the user and working directory to server output.
Proper logging for the peer address.
Added and updated tests.
Using rust 1.66.
Added dependency to file-ext 9.0.3.
Updated documentation and logo.
Default index.html is now properly scaled for smartphones and tablets.
Full change list for Rust Web Server
8.0.0
- proper error handling for not UTF-8 encoded incoming requests
- added ability to set allocated memory size for each incoming request
- added tests
- configuration parameters are now shown during startup
- improved request/response logging
UPDATE 19 Dec 2022:
Added Windows executable