Skip to content

0.4.X: Closer and closer to Express

Compare
Choose a tag to compare
@talentlessguy talentlessguy released this 22 Sep 20:20
· 1039 commits to master since this release

In 0.4.X a lot of new req / res extensions are added, also some new app settings.

Request / Response extensions

Request

Properties

  • req.subdomains
  • req.app

Methods

  • req.acceptsCharsets
  • req.acceptsEncodings
  • req.acceptsLanguages
  • req.is

Response

Properties

  • res.locals
  • res.app

Methods

  • res.type
  • res.format
  • res.redirect 馃帀

App

App now has 2 new settings:

  • subdomainOffset - configuration of req.subdomains domain offset
  • bindAppToReqRes - access req.app and res.app

Packages

Created new package - @tinyhttp/type-is