(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn)
| 144 | } |
| 145 | |
| 146 | func (c *Client) PostBothWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { |
| 147 | req, err := NewPostBothRequestWithBody(c.Server, contentType, body) |
| 148 | if err != nil { |
| 149 | return nil, err |
| 150 | } |
| 151 | req = req.WithContext(ctx) |
| 152 | if err := c.applyEditors(ctx, req, reqEditors); err != nil { |
| 153 | return nil, err |
| 154 | } |
| 155 | return c.Client.Do(req) |
| 156 | } |
| 157 | |
| 158 | func (c *Client) PostBoth(ctx context.Context, body PostBothJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { |
| 159 | req, err := NewPostBothRequest(c.Server, body) |
nothing calls this directly
no test coverage detected