Hacker GitHub

← All repos

julienschmidt/httprouter

View on GitHub ↗ ★ 17,135 Go

A high performance HTTP request router that scales well

27 mentions on Hacker News by 26 people: 1 story, 26 comments · first 2014-04-23 · latest 2025-05-09

Mentions per year 27 mentions · busiest year 2016 (6)
20082026
  1. …These have Zero dependencies. It's not rare in Go land. - https://github.com/go-chi/chi 19k stars - https://github.com/julienschmidt/httprouter 16k stars - https://github.com/gorilla/mux 21k stars - https://github.com/spf13/pflag 2.6k…
  2. …trees under the hood. [1] https://github.com/metosin/reitit/blob/master/doc/performanc... [2] https://github.com/julienschmidt/httprouter#how-does-it-work
  3. …the underlying data structure so you can do non-http.Handler things with it if you want. [1]: https://github.com/julienschmidt/httprouter [2]: https://github.com/infogulch/pathmatcher [3]: https://github.com/julienschmidt/go-http-routing-be…
    comment by infogulch · 2023-10-16 · in Better HTTP server routing in Go 1.22
  4. …was more the talk of the office than DI/IoC. - For routing and HTTP the service used httprouter https://github.com/julienschmidt/httprouter I think it's a fantastic language, gofmt and gotest are both great utilities, and the short time to…
  5. …I mostly use https://goswagger.io but for basic stuff then just the standard http library + https://github.com/julienschmidt/httprouter - Testing: https://golang.org/pkg/testing/ + https://pkg.go.dev/mod/github.com/stretchr/testify -…
  6. Or if you can live with slightly fewer features (and an additional param for your handlers): https://github.com/julienschmidt/httprouter Appears to be faster, but I guess the difference wouldn't be noticeable until you start doing some…
    comment by throwaway77384 · 2018-12-17 · in Vue.js and Go example project
  7. …file with `yield` - https://github.com/unrolled/render Let me quickly route with param support - https://github.com/julienschmidt/httprouter Sessions, flash messages, and secure cookies - http://www.gorillatoolkit.org/pkg/sessions POST…
  8. …thing people probably adopt is a more expressive router. [1] https://github.com/gin-gonic/gin [2] https://github.com/julienschmidt/httprouter [3] https://github.com/gorilla
  9. …as well. The net/http library suffices. Just that you might need a library for routing like https://github.com/julienschmidt/httprouter
    comment by kanishkdudeja · 2018-02-16 · in Ask HN: Which stack do you use at your startup?
  10. …restrictions in Go's type system. (Sorry if this isn't the kind of answer you were hoping for.) [1] https://github.com/julienschmidt/httprouter [2] https://github.com/jmoiron/sqlx [3] https://github.com/gorilla/websocket
  11. Using no frameworks at all, only https://github.com/julienschmidt/httprouter for routing.
  12. …https://www.reddit.com/r/golang/comments/6hmlod/githubcomkat... https://github.com/julienschmidt/httprouter/issues/148 etc. etc. etc. .................
  13. …error handler, make development easy - Trie base gear.Router, it is as faster as [HttpRouter]( https://github.com/julienschmidt/httprouter ), but more powerful - Integrated timeout context.Context - Integrated response content compress -…
  14. I suggest you adopt a 3rd party router, rather than using pure Go standard library for this. https://github.com/julienschmidt/httprouter is the most popular one. It supports a custom 404 handler https://github.com/julienschmidt/httprouter/b…
    comment by artursapek · 2017-02-16 · in Go 1.8 Release Notes
  15. …not sure why it's the first choice for so many people. There are much better alternatives such as https://github.com/julienschmidt/httprouter or https://github.com/gin-gonic/gin .
    comment by ilozinski · 2017-02-10 · in Go Web Examples
  16. …"mux" with a router that more closely aligns with modern expectations, such as httprouter ( https://github.com/julienschmidt/httprouter ) or chi ( https://github.com/pressly/chi ). These libraries also support middleware wrapping [1], a…
  17. …in the routing pattern and matches against the request method. It also scales better." [0] https://github.com/julienschmidt/httprouter
  18. …so you get the best of both. Additionally, httprouter (golang) uses a trie and is fast as hell: https://github.com/julienschmidt/httprouter Edit: Adding another one (thanks buro9!) that is used in production by CloudFlare:…
  19. He and I have chatted. I know he is fixing things. https://github.com/julienschmidt/httprouter/issues/149
  20. More specific to the license violations is this issue on httprouter: https://github.com/julienschmidt/httprouter/issues/148
  21. Gin uses HttpRouter ( https://github.com/julienschmidt/httprouter ) which is heavily optimized for performance, as can seen here: https://github.com/julienschmidt/go-http-routing-benchmark . As the author has noted on the page that "a…
  22. …( https://github.com/rs/xhandler ). If you want more performant or flexible routing, httprouter ( https://github.com/julienschmidt/httprouter ) has a nice feature set. Maybe it's personal preference, but there's something more satisfying…
    comment by deepanchor · 2015-11-10 · in Six years of Go
  23. …top of net/http, and most serious routers/frameworks do. [0] https://github.com/gin-gonic/gin [1] https://github.com/julienschmidt/httprouter
    comment by themartorana · 2015-04-17 · in Moving from PHP to Go and Microservices
  24. …params interface is much nicer, and it's pretty damn good with performance and allocation count: https://github.com/julienschmidt/httprouter
  25. …use bits and pieces of them if you'd like, you aren't required to use all the functionality. [0] https://github.com/julienschmidt/httprouter
    comment by kyrra · 2014-05-22 · in A Comparison of Go Web Frameworks
  26. …semantics will not change. Maybe you can just use HttpRouter without reimplementing it yourself? https://github.com/julienschmidt/httprouter > The router is optimized for best performance and a small memory footprint. It scales well even…
    comment by Matrixik · 2014-04-23 · in Goji: a web microframework for Go