Skip to content

Releases: litert/http.js

Release v0.5.1

14 Aug 04:07

Choose a tag to compare

Changes

  • Improved the timeout-controlling of client request.
  • Fixed using Readable stream as data of client request.

Release v0.5.0

14 Aug 04:07

Choose a tag to compare

New

  • Added method createClient.

Release v0.4.3

09 May 05:38

Choose a tag to compare

Changes

  • Upgraded @litert/core to v0.6.0.

Release v0.4.2

09 May 05:39

Choose a tag to compare

Changes

  • Fixed: The JSON parsing exception is uncaught.

Release v0.4.1

09 May 05:39

Choose a tag to compare

Changes

  • Upgraded @litert/core to v0.5.0.
  • Added argument assert for method ServerRequest.getContent.
  • Added urlencode for cookies encoding.
  • Fixed some bug due to "=" insides the cookies value.
  • Now the decorator supports multi-path rules for once registration.

Release v0.4.0

26 Mar 04:29

Choose a tag to compare

News

  • Added following methods for class ServerRequest:
    • getAcceptableLanguages
    • getAcceptableEncodings
    • getAcceptableTypes
    • getContent get and parse the http content, supporting types raw,
      json, string, urlencode, and etc.
  • Added built-in plugins for raw, json, string, urlencode,

Changes

  • Upgraded @litert/core to v0.4.0.
    base64 parser.
  • Deprecated creating-server options plugins.cookies, use the option
    plugins["parser:cookies"] instead.
  • Deprecated following properties or methods in class ServerRequest:
    • acceptableLanguages (use getAcceptableLanguages instead)
    • acceptableEncodings (use getAcceptableEncodings instead)
    • acceptableTypes (use getAcceptableTypes instead)
    • getBody (use getContent instead)
    • getBodyAsJSON (use getContent instead)
  • Deprecated methods createStandardCookiesEncoder, use
    plugins.createCookiesEncoder instead.

All the above DEPRECATED items will be removed in v0.5.0.

Release v0.3.1

05 Mar 08:50

Choose a tag to compare

Changes

  • Fixed the dependency to @litert/core.

Release v0.3.0

05 Mar 07:47

Choose a tag to compare

New Features

  • Added the router for controllers' methods mapping.
  • Added wildcard supports in router.

Changes

  • Fixed the minimal SSL/TLS protocol version restriction in virtual hosts.

Release v0.2.4

05 Mar 11:26

Choose a tag to compare

Changes

  • Fixed: The detection of smart-rule for middlewares.

Release v0.3.0-RC-1

01 Feb 09:57

Choose a tag to compare

Release v0.3.0-RC-1 Pre-release
Pre-release

New Features:

  • Added minimal SSL/TLS protocol version restriction.
  • Added virtual hosts supports.
  • Added new utility properties for ServerRequest objects.

Changes:

  • Fixed the cookies encoder about domain.