0.4.X: Closer and closer to Express
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 ofreq.subdomains
domain offsetbindAppToReqRes
- accessreq.app
andres.app
Packages
Created new package - @tinyhttp/type-is