- Removed middleware
nextis no longer the third arugments to routes, this has been replaced withctx- If you need middleware, just provide an array of functions to the router
- Enabled the ability to create an HTTPS server
- Passing in
opts.http.{key, ca, cert}will now make an HTTPS server
- Passing in
- The built-in
HTTPServer,RequestandResponseobjects are no longer modified- The
ctxobject now contains the keys previously placed intoreqandres - The result of
new TakeFive()is a TakeFive object. The underlying node server instance may be accessed via.serveron the resulting object
- The
- Update deps from greenkeeper
- Fix a typo preventing
corsoptions from being overridden
- Fix bug where zero-length bodies would attempt to be parsed
- Fix bug where we sent a pre-generated content-length header that caused issues with
.pipe(res)
- Add
Access-Control-Allow-Methodsto CORS options
- Make sure to always call
res.end
- First useable release. Added license & benchmarks