(body []byte)
| 128 | } |
| 129 | |
| 130 | func BinaryResponse(body []byte) Responder { |
| 131 | return func(req *http.Request) (*http.Response, error) { |
| 132 | return httpResponse(200, req, bytes.NewBuffer(body)), nil |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | func WithHost(matcher Matcher, host string) Matcher { |
| 137 | return func(req *http.Request) bool { |