Kamil Kisiel
757bef944d
Merge pull request #196 from olt/doc-non-capture-groups
...
document non-capturing groups (closes #143 )
9 years ago
Oliver Tonnhofer
14f5df0128
document non-capturing groups ( closes #143 )
9 years ago
Kush Mansingh
0a192a1931
Add useEncodedPath option to router and routes ( #190 )
...
- Resolves a breaking change in #184
9 years ago
Richard Musiol
0b13a92220
Simplify extractVars, fixes edge cases. ( #185 )
...
Also make sure all regexp groups in tests are non-capturing.
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 )
...
* Add mechanism to route based on the escaped path, correct request mocking in tests
* Remove unneccessary regex matching, substitute with string slicing
* Add test case and handling for requests with no host/scheme
9 years ago
Kamil Kisiel
cf79e51a62
.travis.yml: add go1.7
9 years ago
Matt Silverlock
7804150971
[docs] Add logo to README. ( #180 )
10 years ago
Matt Silverlock
3b15f12d15
[docs] Add static file example to README; doc.go. ( #179 )
10 years ago
Kamil Kisiel
327d4b684c
Clean up some naming in mux_test.go
10 years ago
Matt Silverlock
a49d62f618
[bugfix] Fix error handling in Router.Walk ( #177 )
10 years ago
Martin Hamrle
cf57124f1d
Fix error handling in Router.Walk
...
In old version error was not returned properly, In one walkFn call
error was checked only for SkipRouter but not for nil.
10 years ago
Matt Silverlock
d391bea311
[docs] README typo ( #175 )
10 years ago
delong
198f95d824
fix README.md
10 years ago
Matt Silverlock
9fa818a44c
[ci] Update .travis-ci to skip install block. ( #170 )
...
Ref 12a13f34e4 (commitcomment-17371551)
10 years ago
Kamil Kisiel
e84fac997f
Merge pull request #169 from ejholmes/go1.7-context
...
Store vars and route in context.Context when go1.7+ is used
10 years ago
Eric J. Holmes
fdfca9f917
Support native context.Context when go1.7 is used.
10 years ago
Eric J. Holmes
5dd56998c2
Add failing context.Context test for go1.7.
10 years ago
Matt Silverlock
bd09be08ed
[docs] Log ListenAndServe's err response in example
10 years ago
Mukhtar Haji
0d753bb8ca
Log ListenAndServe's err response.
10 years ago
Matt Silverlock
9c19ed558d
[feature] Add SkipClean option
...
- SkipClean skips cleaning routes (or a route) - e.g. when true, if the route path is "/path//to", it will remain with the double slash. This is helpful if you have a route like: /fetch/http://xkcd.com/534/
10 years ago
Jingwen Owen Ou
12a13f34e4
`go vet` is part of Go now
10 years ago
Jingwen Owen Ou
05d9d908e7
Add `SkipClean()` to `*Route`
10 years ago
Jingwen Owen Ou
9935257381
Add test for `SkipClean`
10 years ago
Jingwen Owen Ou
a41434aac3
Clarify more of `SkipClean`
10 years ago
Matt Silverlock
0eeaf8392f
Merge pull request #158 from raninho/master
...
[tests] old_test: const DefaultRemoteAddr is unused.
10 years ago
Raniere Fernandes de Medeiros
8e05c69b5a
old_test: const DefaultRemoteAddr is unused.
10 years ago
Matt Silverlock
acf3be1b33
Merge pull request #155 from jprobinson/master
...
[bugfix] Allow case insensitive regexp groups (fix regression in #144 )
10 years ago
JP Robinson
65c2651643
fixing regexp changes from PR #144
10 years ago
Jingwen Owen Ou
786d36e5ab
`go fmt`
10 years ago
Dave Newman
8ac5cf967f
Add SkipClean option
...
By default paths are run through the cleanPath method which prevents
using fancier paths like /fetch/http://xkcd.com/534
This adds a SkipClean option so that this path isn't redirected to
/fetch/http/xkcd.com/534
10 years ago
Matt Silverlock
147a95f5e3
Merge pull request #104 from Digitalxero/method-to-get-url-template
...
[feature] GetHostTemplate and GetPathTemplate return the template used to build the route.
10 years ago
Dj Gilcrease
f7ac7251e3
Update doc strings based on feedback
10 years ago
Matt Silverlock
c9e326e2bd
Merge pull request #150 from gorilla/elithrar/go-lint
...
[docs] Satisfied golint.
- SkipRouter should also be ErrRouterSkipped (or similar) but a change would break the public API.
10 years ago
Matt Silverlock
02c98b3f73
[docs] Satisfied golint.
...
- SkipRouter should also be ErrRouterSkipped (or similar) but a change would
break the public API.
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
Dj Gilcrease
16507e2c47
Merge branch 'master' into method-to-get-url-template
10 years ago
Matt Silverlock
c582f4facc
Merge pull request #149 from gorilla/elithrar/readme-website
...
[docs] Add http://www.gorillatoolkit.org/pkg/mux to README.
10 years ago
Matt Silverlock
5f42f0f524
[docs] Add http://www.gorillatoolkit.org/pkg/mux to README.
10 years ago
Matt Silverlock
d067e87329
Merge pull request #144 from tumdum/regexp-speedup
...
[refactor] Only wrap regexp in group if not already in a group + perf. gains.
- Addresses https://github.com/gorilla/mux/issues/62
- ~27% less allocs/~15% speedup (ns/op)
10 years ago
Matt Silverlock
dfc482b255
Merge pull request #148 from gorilla/ci/travis-go-1.6
...
[ci] Update .travis.yml to build Go 1.6
10 years ago
Matt Silverlock
7872f90afa
Update .travis.yml to build Go 1.6
10 years ago
Tomasz Kłak
78fb8eb962
Added benchmark with deep path
10 years ago
Tomasz Kłak
f48927253f
Named groups replaced with conditional wrapping of regexps
10 years ago
Matt Silverlock
26a6070f84
Merge pull request #141 from tcyrus/patch-1
...
[docs] Tidy up README formatting.
10 years ago
Timothy Cyrus
66181ed337
Update README.md
10 years ago
Matt Silverlock
2aad27d310
Merge pull request #139 from bign8/issue_20
...
[feature] NotFoundHandler on Subrouters is now called correctly.
10 years ago
Nate Woods
82a9c170d4
Covering change with unit test
...
This test focuses on the feature of allowing sub-routers error handlers to precede the parents, rather than the code change required to provide this functionality.
10 years ago
bign8
c329c7d193
Potential fix for #20
10 years ago