Re:Mux – A lightweight, fast HTTP request router for Go
by mmgutz on Monday December 05, 2016 @02:38PM
(#13108571)
httprouter is unforgiving with routes. IIRC, having both of these routes are not allowed
Seems like a common use case.
[ Parent
| on HN ]
Re:Mux – A lightweight, fast HTTP request router for Go
by peterkieltyka on Monday December 05, 2016 @03:45PM
(#13109345)
Interesting.. and btw, pressly/chi supports those routes easily, among many other combinations. Chi was designed to be very composeable with middlewares, subrouters and handlers. The idea is to consider the request passing through a "flow" of layers, handling and building the response along the way. This makes it easier to reason and organize each piece separately and then connect it all together.