blob: 715ccacd0091c94d67d6dec2230bfc58d2425e71 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package mooh
import (
"net/http"
)
type Request struct {
routeParams map[string]string
*http.Request
}
func (self *Request) RouteParam(name string) string {
return self.routeParams[name]
}
func NewRequest(req *http.Request, match *Match) *Request {
return &Request{
match.Mapping,
req,
}
}
|