Skip to content

Releases: bohdaq/rust-web-framework

16.1.0

03 Sep 11:32
ec3b61a
Compare
Choose a tag to compare

Fixed broken feature from 16.0.0:

  • Resolving .html files without .html in path. If you try to open /folder it will open file folder/index.html

16.0.0

10 Aug 13:49
d36db74
Compare
Choose a tag to compare
  • 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.

Changelist

15.1.0

20 Jul 20:29
da5211f
Compare
Choose a tag to compare
  1. Added thread id to log messages
  2. Added tests for controllers
  3. 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
  4. 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

Full changelist

14.0.0

15 Jun 14:01
e9c8c70
Compare
Choose a tag to compare

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 to Response

Full changelist

13.0.0

27 May 17:27
0184091
Compare
Choose a tag to compare
  • Added Application and Controller traits
  • Added Base64 implementation
  • Updated existing controllers to implement Application and Controller traits.
  • Updated Server module
  • Added and updated documentation
  • Updated dependencies to latest versions
  • Added URL module
  • Added get_domain, get_path and get_port methods to Request
  • Added and updated tests

Full changelist

12.0.0

25 Apr 14:33
477b3ed
Compare
Choose a tag to compare

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

16 Apr 01:38
99da19d
Compare
Choose a tag to compare

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

15 Feb 00:22
921c0c3
Compare
Choose a tag to compare

New features:

  • 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.

Changelist

9.0.0

15 Feb 00:09
d2f8719
Compare
Choose a tag to compare

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

8.0.1

25 Dec 19:52
4627012
Compare
Choose a tag to compare
  • Server::process_request now takes second parameter peer_addr: SocketAddr
  • added log package
  • Rust version 1.65