Skip to content

@talentlessguy talentlessguy released this Sep 22, 2020 · 273 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

Assets 2
You can’t perform that action at this time.