| 31 | } |
| 32 | |
| 33 | type Ctx struct { |
| 34 | Server *Server // Reference to *Server |
| 35 | Method string // HTTP method |
| 36 | BaseURI string // HTTP base uri |
| 37 | Request *http.Request // HTTP request |
| 38 | Response *responseWriterWrapper // HTTP response writer |
| 39 | params map[string]string // URL parameters |
| 40 | locals map[interface{}]interface{} // Local variables |
| 41 | indexHandler int // Index of the handler |
| 42 | route *Route // HTTP route |
| 43 | } |
| 44 | |
| 45 | type responseWriterWrapper struct { |
| 46 | http.ResponseWriter |
nothing calls this directly
no outgoing calls
no test coverage detected