SetStatusCode sets the status code that will be returned by the server
(status int)
| 68 | |
| 69 | // SetStatusCode sets the status code that will be returned by the server |
| 70 | func (s *TestServer) SetStatusCode(status int) *TestServer { |
| 71 | s.status = status |
| 72 | return s |
| 73 | } |
| 74 | |
| 75 | // SetBody sets the body that will be returned by the server |
| 76 | func (s *TestServer) SetBody(data []byte) *TestServer { |
no outgoing calls