Euan Kemp
a038e0d43f
Add route url test for schemes
7 years ago
Kamil Kisiel
512169e5d7
refactor routeRegexp, particularily newRouteRegexp. ( #328 )
...
The existing options matchPrefix, matchHost, and matchQueries are
mutually exclusive so there's no point in having a separate boolean
argument for each one. It's clearer if there's a single type variable.
strictSlash and useEncodedPath were also being passed as naked bools so
I've wrapped these in a struct called routeRegexpOptions for more clarity
at the call site.
8 years ago
Mayank Patel
a659b61323
Fix #271 : Return 405 instead of 404 when request method doesn't match the route
8 years ago
Kush Mansingh
0a192a1931
Add useEncodedPath option to router and routes ( #190 )
...
- Resolves a breaking change in #184
9 years ago
Raniere Fernandes de Medeiros
8e05c69b5a
old_test: const DefaultRemoteAddr is unused.
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
Kamil Kisiel
b0b2bc47bc
Quote domain names in README.md. Use example.com instead of domain.com
...
Fixes #119
10 years ago
Tzu-Jung Lee
3351f602a5
gofmt
12 years ago
Raphael Simon
c9469524da
Fix old tests
...
Remove tests that don't apply anymore
Fix scheme matcher tests
12 years ago
Raphael Simon
65cc9b5df8
Add ability to capture variables in query strings
12 years ago
Andrews Medina
cebebed6c4
go fmt.
...
result of `gofmt -s -w . `.
12 years ago
moraes
eac83ba2c0
Initial files.
13 years ago