(req *http.Request, dest interface{})
| 114 | } |
| 115 | |
| 116 | func decodeJSONBody(req *http.Request, dest interface{}) error { |
| 117 | b, err := readBody(req) |
| 118 | if err != nil { |
| 119 | return err |
| 120 | } |
| 121 | return json.Unmarshal(b, dest) |
| 122 | } |
| 123 | |
| 124 | func StringResponse(body string) Responder { |
| 125 | return func(req *http.Request) (*http.Response, error) { |
no test coverage detected