Comments (5)
Those are typically things a higher level framework built in connect would provide. Closing for now
from connect.
So are things like res.simpleBody()
and res.redirect()
. I think Connect is right now sitting sort of in the middle. I personally agree that Connect shouldn't try and be a higher level framework, to make it as flexible as possible (especially considering I am rewriting my framework to sit on top of Connect). I just think it needs to choose a direction. I think req and res should not be extended.
from connect.
I can agree with that. res.simpleBody()
is used a bit internally but it does not have to be. redirect and similar could easily be in a contrib repo, but I guess you could say the same about flash too. tough call. I think these are nice pieces to optionally allow for framework builders, but they should be optional at least. We could add a query string parser middleware but I think that will have many use cases, express for example has param()
which checks GET (querystring), POST, and route related vars, but lots of other frameworks will do it completely differently
from connect.
I think 'we' need to start having another folder or repo of cool middlewares that aren't core, but still very useful - this params middleware would fit right in there.
from connect.
yeah i agree. Even if its just a wiki page or something. Managing them all under one repo is a bit annoying
from connect.
Related Issues (20)
- Stream based middleware for response modification HOT 4
- cannot install connect using npm HOT 4
- use regexp to replace 'getProtohost' HOT 2
- finalhandler vulnerability HOT 6
- logo contribution HOT 3
- Settle on `res.locals` as mechanism for sharing config between middleware HOT 8
- Accepts array for middleware HOT 5
- TypeError: Cannot read property 'send' of undefined HOT 1
- Support route patterns HOT 1
- Documentation for "Node.js http request object" HOT 7
- Drop unsupported Node.js version HOT 1
- Not clear comment HOT 1
- whether can we give up nodejs that is less than version 7 ? HOT 5
- whether can we redesign connect code in ecmascript 2015+ syntax? HOT 3
- Error while using express-rate-limit HOT 1
- release HOT 2
- ConnectIkonic
- Content-Type: 'application/fhir+json' HOT 2
- route is not support params HOT 1
- bug: redirecting to external URLs HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from connect.