(ctx context.Context, reqEditors ...RequestEditorFn)
| 204 | } |
| 205 | |
| 206 | func (c *Client) GetJson(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { |
| 207 | req, err := NewGetJsonRequest(c.Server) |
| 208 | if err != nil { |
| 209 | return nil, err |
| 210 | } |
| 211 | req = req.WithContext(ctx) |
| 212 | if err := c.applyEditors(ctx, req, reqEditors); err != nil { |
| 213 | return nil, err |
| 214 | } |
| 215 | return c.Client.Do(req) |
| 216 | } |
| 217 | |
| 218 | func (c *Client) PostOtherWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { |
| 219 | req, err := NewPostOtherRequestWithBody(c.Server, contentType, body) |
nothing calls this directly
no test coverage detected