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
20082026
-
…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…
comment by hu3 · 2025-05-09 · in Rust’s dependencies are starting to worry me -
…trees under the hood. [1] https://github.com/metosin/reitit/blob/master/doc/performanc... [2] https://github.com/julienschmidt/httprouter#how-does-it-work
comment by koito17 · 2024-09-10 · in A good day to trie-hard: saving compute 1% at a time -
…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 -
…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…
comment by tcbasche · 2020-04-16 · in Ask HN: How are you using Go to write production-grade back end services? -
…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 -…
comment by bithavoc · 2020-04-16 · in Ask HN: How are you using Go to write production-grade back end services? -
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 -
…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…
comment by astockwell · 2018-07-14 · in Ask HN: What is the current state of web frameworks in Golang? -
…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
comment by artursapek · 2018-07-14 · in Ask HN: What is the current state of web frameworks in Golang? -
…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? -
…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
comment by nishs · 2018-01-07 · in Show HN: A simple Go web server with logging, tracing, health check -
Using no frameworks at all, only https://github.com/julienschmidt/httprouter for routing.
comment by taneltanel · 2017-09-07 · in Ask HN: What Go framework for web API are you using in production? -
…https://www.reddit.com/r/golang/comments/6hmlod/githubcomkat... https://github.com/julienschmidt/httprouter/issues/148 etc. etc. etc. .................
comment by OoooooooO · 2017-08-20 · in Go vs. .NET Core in Terms of HTTP Performance -
…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 -…
comment by zensh · 2017-03-05 · in Gear: a koa like web service framework for Go -
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 -
…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 -
…"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…
comment by lobster_johnson · 2016-12-24 · in Writing web applications using only the Go Standard Library -
…in the routing pattern and matches against the request method. It also scales better." [0] https://github.com/julienschmidt/httprouter
comment by psiclops · 2016-12-05 · in Mux – A lightweight, fast HTTP request router for Go -
…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:…
comment by SEJeff · 2016-12-05 · in Mux – A lightweight, fast HTTP request router for Go -
He and I have chatted. I know he is fixing things. https://github.com/julienschmidt/httprouter/issues/149
comment by mholt · 2016-06-25 · in Iris framework author exposed for license violations -
More specific to the license violations is this issue on httprouter: https://github.com/julienschmidt/httprouter/issues/148
comment by sgmansfield · 2016-06-25 · in Iris framework author exposed for license violations -
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…
comment by mindcrash · 2016-03-21 · in Show HN: Lion, a fast HTTP router for building modern scalable modular REST APIs -
…( 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 -
…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 -
…params interface is much nicer, and it's pretty damn good with performance and allocation count: https://github.com/julienschmidt/httprouter
comment by bgentry · 2015-03-31 · in Echo: A fast HTTP router and micro framework in Go -
…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 -
…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