SetBody sets the body that will be returned by the server
(data []byte)
| 74 | |
| 75 | // SetBody sets the body that will be returned by the server |
| 76 | func (s *TestServer) SetBody(data []byte) *TestServer { |
| 77 | s.data = data |
| 78 | return s |
| 79 | } |
| 80 | |
| 81 | // SetHeaders adds headers that will be returned by the server. |
| 82 | // Odd arguments are treated as keys, even arguments as values. |
no outgoing calls