(header, value string)
| 49 | } |
| 50 | |
| 51 | func (r *route) Header(header, value string) { |
| 52 | r.MatcherFunc(func(req *http.Request) bool { |
| 53 | return req.Header.Get(header) == value |
| 54 | }) |
| 55 | } |
| 56 | |
| 57 | func (r *route) MatcherFunc(f func(*http.Request) bool) { |
| 58 | r.matcherFunc = f |
no test coverage detected