So I wrote some experimental and almost pointlessly generic connect like #nodejs thing… https://github.com/sandfox/node-pinion …
@sandfoxuk I don't think it's pointless. I was coding a middleware a week ago; testing is hard.
-
-
@sandfoxuk I had to use supertest to create the request+response objects, but then doing so meant I couldn't test throwing exceptions...
-
@sebinsua this has no idea of http, paths, routes, etc (yet), but might create generic way to plugin routing. - 2 more replies
New conversation -
-
-
@sebinsua hadn’t even thought of that as a use case! I just wanted something for non-http usage.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.