(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn)
| 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) |
| 184 | if err != nil { |
| 185 | return nil, err |
| 186 | } |
| 187 | req = req.WithContext(ctx) |
| 188 | if err := c.applyEditors(ctx, req, reqEditors); err != nil { |
| 189 | return nil, err |
| 190 | } |
| 191 | return c.Client.Do(req) |
| 192 | } |
| 193 | |
| 194 | func (c *Client) PostJson(ctx context.Context, body PostJsonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { |
| 195 | req, err := NewPostJsonRequest(c.Server, body) |
nothing calls this directly
no test coverage detected