Marco Lüthy

Results 41 issues of Marco Lüthy

Updates the `mongodb` npm package to it's latest version. Some small changes were made to Mongorito's code. Specifically: - `MongoClient.connect()` was [deprecated](http://mongodb.github.io/node-mongodb-native/3.0/api/MongoClient.html#connect), now using `new MongoClient().connect()` - `MongoClient.collections` no longer...

Extend response.respondTo() to accept function, rather than than just string. This allows for only computing the response required to satisfy the `Accept` header. See [expressjs](http://expressjs.com/en/4x/api.html#res.format) for inspiration. - [ ]...

enhancement

[rollup-plugin-typescript2](https://github.com/ezolenko/rollup-plugin-typescript2)?

enhancement

Refactor some middleware into factories, e.g. `middleware=[ csp({ options })`, other(), etc] - [ ] CSP middleware, to allow configuration of content security policies - [ ] what else?

enhancement
middleware

Add a request middleware which verifies safety of headers. E.g. ☐ Verify that header values in both requests and responses contain only ASCII characters

feature
middleware

add request middleware to support parsing of multipart/form-data request body

middleware

add convenience `context.callbackWaitsForEmptyEventLoop=false` middleware

feature
middleware

E.g. in `src/types.ts` ```typescript export interface InterfaceResponse { /** * Redirect to a new location. */ readonly redirect: ( location: string, statusCode?: number, options?: InterfaceResponseOptions, ) => void ... }

enhancement
documentation

Add an example handler which includes/demonstrates routing with a router like [franxx](https://github.com/egoist/franxx) or [trouter](https://github.com/lukeed/trouter)

documentation