express
express copied to clipboard
Fast, unopinionated, minimalist web framework for node.
For Express 4.x, documentation says "Using app.route() is a recommended approach to avoiding duplicate route naming and thus typo errors." However, since all() and use() are different, it would be...
Hi there! By default, express does not serve no-cache headers on routes, so for instance: ``` import * as express from 'express' const app = express() app.get('/', (_req, res) =>...
`res.sendFile()` accepts an option to disable ETags. It would make sense that `app.disable('etag')` sets `sendFile()`s `options.etag` to `false` for you. This is a breaking change so it would have to...
https://github.com/strongloop/express/blob/5.0/lib/application.js Currently: ``` js /** * Delegate `.VERB(...)` calls to `router.VERB(...)`. */ methods.forEach(function(method){ app[method] = function(path){ if ('get' == method && 1 == arguments.length) return this.set(path); var route = this.route(path);...
First step in isolating the view system away from "app" level and towards something that can be used via middleware later.
I'd like to be able to use `express.request` and `express.response` outside of an express `application` "instance". This means I'd be able to use them as prototypes for my own request...
The interface `app.set(, )` feels a odd for setting values in a JavaScript framework. Also, its counterpart `app.get()` is a confusing twin of `app.get(path, callback [, callback ...])`, which is...
I a wondering if it might be possible to separate View.js into a separate npm repository. It is already possible to change the default View code, and the View.js file...
I needed to disable this behavior in an application I'm working on. It seemed to me that disabling ETags should disable the automatic comparing of `If-None-Match` and the response `ETag`...
**Problem statement** There is a problem which always happens what if we wanted to make certain actions or wrap our responses all our responses in express in a certain standard...