(body []byte)
| 10 | ) |
| 11 | |
| 12 | func SpecifiedHTTPBodyHandler(body []byte) http.HandlerFunc { |
| 13 | return func(w http.ResponseWriter, req *http.Request) { |
| 14 | _, _ = w.Write(body) |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | func ExpectResponseCode(code int) EnsureFunc { |
| 19 | return func(resp *request.Response) bool { |