88 Commits (master)

Author SHA1 Message Date
wangming 4de8a5a4d2 fix headers regexp test (#536) 6 years ago
Franklin Harding f395758b85 Remove/cleanup request context helpers (#525) 6 years ago
Euan Kemp ff4e71f144 Guess the scheme if r.URL.Scheme is unset (#474) 6 years ago
Vivek V e1863a64f3 Modified http status codes, using constants provided by the http package (#514) 6 years ago
Jonas De Beukelaer 9536e4053d bugfix: subrouter custom methodNotAllowed handler returning 404 (#509) (#510) 6 years ago
Christian Muehlhaeuser 50fbc3e7fb Avoid unnecessary conversion (#502) 6 years ago
Benjamin Boudreau 15a353a636 adding Router.Name to create new Route (#457) 7 years ago
moeryomenko a7962380ca replace rr.HeaderMap by rr.Header() (#443) 7 years ago
Gregor Weckbecker 08e7f807d3 Ignore ErrNotFound while matching Subrouters (#438) 7 years ago
santsai f3ff42f93a getHost() now returns full host & port information (#383) 7 years ago
Joe Wilner 758eb64354 Improve subroute configuration propagation #422 7 years ago
kanozec 3d80bc801b Use subtests in mux_test.go (#415) 7 years ago
Kamil Kisiel e48e440e4c Add test for multiple calls to Name(). 7 years ago
Franklin Harding 5e55a4adb8 Add CORSMethodMiddleware (#366) 8 years ago
Franklin Harding 0fdf828bb2 [docs] Clarify SetURLVars (#335) 8 years ago
Kamil Kisiel 512169e5d7
refactor routeRegexp, particularily newRouteRegexp. (#328) 8 years ago
Matthew 4a3d4f3dd2 [bugfix] Fix method subrouter handler matching (#300) (#317) 8 years ago
Roberto Santalla 7f08801859 MatchErr is set to ErrNotFound if NotFoundHandler is used (#311) 8 years ago
Paul B. Beskow 10490f55fa GetQueryTemplates and GetQueryRegexp extraction (#304) 8 years ago
Pontus Leitzler bdd5a5a1b0 Fix WriteHeader in TestA301ResponseWriter. (#301) 8 years ago
Matt Silverlock bb285ea687 [docs] Fix missing space in docstring (#289) 8 years ago
Mayank Patel a659b61323 Fix #271: Return 405 instead of 404 when request method doesn't match the route 8 years ago
Chris Hines ac112f7d75 Prefer scheme on child route when building URLs. 9 years ago
Chris Hines 37b3a6cace Use scheme from parent router when building URLs. 9 years ago
Chris Hines 18fca31550 Add test and fix for escaped query values. 9 years ago
Pavel Ivanov f9aa23a02b Add tests for support for queries in URL reversing. 9 years ago
Nick Miyake 4d814f7650 Update ancestors parameter for WalkFunc for matcher subrouters 9 years ago
Nick Miyake a322b2c2ec Update Walk to match all subrouters 9 years ago
Chris Hines bcd8bc72b0 Support building URLs with non-http schemes. (#260) 9 years ago
Bulat Gaifullin b552615e22 Added method Route.GetMethods 9 years ago
Bulat Gaifullin 1856953e53 Added method Route.GetPathRegexp 9 years ago
Carlos Alexandro Becker 4c1c3952b7 fixed typo (#250) 9 years ago
Adam Eijdenberg 392c28fe23 [bugfix] fail fast if regex is incorrectly specified using capturing groups. (#218) 9 years ago
ShaneSaww b9ff34f617 Adding some extra tests, to hit all the use cases 9 years ago
ShaneSaww 293ebe1493 Adding in a check for routes with just / 9 years ago
Kush Mansingh 0a192a1931 Add useEncodedPath option to router and routes (#190) 9 years ago
Richard Musiol 0b13a92220 Simplify extractVars, fixes edge cases. (#185) 9 years ago
Aaron Taylor 34bf6dc9fa make the getPath method safer, fixing panics within App Engine (#189) 9 years ago
Kush Mansingh 674ef1c280 Add mechanism to route based on the escaped path (#184) 9 years ago
Kamil Kisiel 327d4b684c Clean up some naming in mux_test.go 10 years ago
Martin Hamrle cf57124f1d Fix error handling in Router.Walk 10 years ago
Eric J. Holmes fdfca9f917 Support native context.Context when go1.7 is used. 10 years ago
Jingwen Owen Ou 9935257381 Add test for `SkipClean` 10 years ago
JP Robinson 65c2651643 fixing regexp changes from PR #144 10 years ago
Dj Gilcrease f84ab9ab62 Fix go fmt issues 10 years ago
Dj Gilcrease 0d60c4bfeb Add tests for GetPathTemplate. Added GetHostTemplate and associated tests as well 10 years ago
Nate Woods 82a9c170d4 Covering change with unit test 10 years ago
mitsuteru sawa a90bbbc6fa Correct a printf verb type 10 years ago
Kamil Kisiel 5112c33f3a slightly improve printing of regexps in failed tests. 10 years ago
Shinya Kawaguchi 577b9e4a65 Add tests for hyphenated variable names 10 years ago