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.
2018-01-05 10:40:59 -08:00
Mayank Patel
a659b61323
Fix #271 : Return 405 instead of 404 when request method doesn't match the route
2017-08-29 22:39:17 -07:00
Kush Mansingh
0a192a1931
Add useEncodedPath option to router and routes ( #190 )
...
- Resolves a breaking change in #184
2016-09-02 08:33:43 -07:00
Raniere Fernandes de Medeiros
8e05c69b5a
old_test: const DefaultRemoteAddr is unused.
2016-03-17 18:23:30 -03:00
Matt Silverlock
02c98b3f73
[docs] Satisfied golint.
...
- SkipRouter should also be ErrRouterSkipped (or similar) but a change would
break the public API.
2016-02-28 19:32:22 -08:00
Kamil Kisiel
b0b2bc47bc
Quote domain names in README.md. Use example.com instead of domain.com
...
Fixes #119
2015-08-13 12:01:04 -07:00
Tzu-Jung Lee
3351f602a5
gofmt
2014-06-24 11:40:51 -07:00
Raphael Simon
c9469524da
Fix old tests
...
Remove tests that don't apply anymore
Fix scheme matcher tests
2014-05-26 15:13:05 -07:00
Raphael Simon
65cc9b5df8
Add ability to capture variables in query strings
2014-05-26 15:01:42 -07:00
Andrews Medina
cebebed6c4
go fmt.
...
result of `gofmt -s -w . `.
2013-11-29 22:23:25 -02:00
moraes
eac83ba2c0
Initial files.
2012-10-03 01:48:17 -03:00