| 32 | } |
| 33 | |
| 34 | type Context interface { |
| 35 | Req() *ContextReq |
| 36 | Res() *ContextRes |
| 37 | Mock(status int, headers map[string]string, body string) |
| 38 | GetResponseHeader(key string) string |
| 39 | SetResponseHeader(key, val string) |
| 40 | SetResponseBody(body string) |
| 41 | GetResponseBody() ([]byte, error) |
| 42 | SetStatusCode(code int) |
| 43 | } |
| 44 | |
| 45 | type contextImpl struct { |
| 46 | Req *http.Request |
no outgoing calls
no test coverage detected