about summary refs log tree commit diff
path: root/route_test.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add GetPath and GetMethod to the Match object masterFranck Cuny2013-05-121-3/+3
|
* The response object is passed to the matching function.Franck Cuny2013-05-111-3/+2
| | | | | | Instead of letting the matching function creates the response object, it's created earlier with a default HTTP status of 200, and the object is passed to the function.
* Rename the package from mooh to routerFranck Cuny2013-05-081-3/+4
|
* Placeholder in URL use the {\w+} form, not :\w+Franck Cuny2013-04-271-14/+14
| | | | | This is the format supported for URI templates (RFC 6570). We're not using it now but this is something that I consider for a near future.
* Support default value for placeholders in route's path.Franck Cuny2013-04-271-0/+39
| | | | | | | | | | | | | | | If a route is created with a Default: &Route{ Path: "/user/:id", Defaults: map[string]string{ "id": "1", }, ... } a request for /user/ will match the route, and set the value for "id" to 1. However, the route /user will not match.
* Rename all instances of Dispatcher to Router.Franck Cuny2013-04-271-6/+6
|
* Rename a few files.Franck Cuny2013-04-271-0/+197
The dispatcher is renamed router (as for the test file) and the router_test is renamed to route_test (since that's what this file is supposed to test).