connect icon indicating copy to clipboard operation
connect copied to clipboard

mod_happy...

Open Robbie-Wilhelm opened this issue 16 years ago • 3 comments

should provide req.GET req.POST req.COOKIES req.ENV etc.

these are basic things that any webapp would need. I suppose webapp is a big use case for connect. of course everybody can write her own decoder, but why making all mistakes (UA behavior..) double?

Robbie-Wilhelm avatar Sep 11 '10 12:09 Robbie-Wilhelm

not every web app needs those though, a generic middleware that combines a lot of the heavily used middleware would be nice though

bmeck avatar Sep 11 '10 14:09 bmeck

Connect should be all about choice. All of these are available, via bodyDecoder, cookieDecoder etc. The only reason I dont want to have some big middleware that combines a few is that it hides what is really happening, and hides configuration opportunities. I think that sort of thing is better left to app generators like express(1) that sets you up with a good base. Although people seem to be really confused that the order you "use" middleware actually has an effect... I have seen some pretty weird combinations lol

tj avatar Sep 11 '10 15:09 tj

Right, connect provides the utilities. It's up to you to package them how you want for your framework.

creationix avatar Oct 01 '10 23:10 creationix