| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
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).
|