(ctx context.Context, reqEditors ...RequestEditorFn)
| 168 | } |
| 169 | |
| 170 | func (c *Client) GetBoth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { |
| 171 | req, err := NewGetBothRequest(c.Server) |
| 172 | if err != nil { |
| 173 | return nil, err |
| 174 | } |
| 175 | req = req.WithContext(ctx) |
| 176 | if err := c.applyEditors(ctx, req, reqEditors); err != nil { |
| 177 | return nil, err |
| 178 | } |
| 179 | return c.Client.Do(req) |
| 180 | } |
| 181 | |
| 182 | func (c *Client) PostJsonWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { |
| 183 | req, err := NewPostJsonRequestWithBody(c.Server, contentType, body) |
nothing calls this directly
no test coverage detected