WithResponseBody sets the response body returned by the server.
(body []byte)
| 49 | |
| 50 | // WithResponseBody sets the response body returned by the server. |
| 51 | func WithResponseBody(body []byte) Option { |
| 52 | return func(c *Config) { |
| 53 | c.ResponseBody = body |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | // WithStatusCode sets the HTTP status code returned by the server. |
| 58 | func WithStatusCode(code int) Option { |