GithubHelp home page GithubHelp logo

Comments (5)

tj avatar tj commented on May 13, 2024

Those are typically things a higher level framework built in connect would provide. Closing for now

from connect.

bentomas avatar bentomas commented on May 13, 2024

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.

tj avatar tj commented on May 13, 2024

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.

weepy avatar weepy commented on May 13, 2024

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.

tj avatar tj commented on May 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.