(ctx context.Context, body PostBothJSONRequestBody, reqEditors ...RequestEditorFn)
| 156 | } |
| 157 | |
| 158 | func (c *Client) PostBoth(ctx context.Context, body PostBothJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { |
| 159 | req, err := NewPostBothRequest(c.Server, body) |
| 160 | if err != nil { |
| 161 | return nil, err |
| 162 | } |
| 163 | req = req.WithContext(ctx) |
| 164 | if err := c.applyEditors(ctx, req, reqEditors); err != nil { |
| 165 | return nil, err |
| 166 | } |
| 167 | return c.Client.Do(req) |
| 168 | } |
| 169 | |
| 170 | func (c *Client) GetBoth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { |
| 171 | req, err := NewGetBothRequest(c.Server) |
nothing calls this directly
no test coverage detected