Skip to content

Releases: faustogerman/Rhino

Release Candidate 2

08 Jun 15:56
Compare
Choose a tag to compare
Release Candidate 2 Pre-release
Pre-release

This version introduces breaking changes and code improvements.

+ : New Feature
- : Removed Feature
~ : Modification
* : Bug fixed

Highlights:

Server

  • + @Rhino_Server - TLS: added initial support for creating TLS servers
  • * OnServerListening: fixed a bug where the hostname was undefined (instead of the default 0.0.0.0) when it was not directly specified in @Rhino_Server.

Request

  • + RhinoRequest.body(): added initial support for reading the body of the HTTP request.
    NOTE: Currently, only application/json or application/x-www-urlencoded content-type headers can be parsed. All other forms of data will be returned raw in the form of a string.
  • ~ RhinoRequest.xhr() -> RhinoResponse.isXHR(): modified the method name to be self descriptive.

Response

  • + RhinoResponse.asAttachment(): added support for sending the response as an attachment.
  • ~ RhinoResponse.contentType(): expanded support for passing file extensions and file types as arguments.
  • + RhinoResponse.download(): added support for sending files for automatic download on the client's side.
  • + RhinoResponse.removeHeader(): added support for removing previously set header fields.
  • + RhinoResponse.sendFile(): added support for sending files to the client.