(ctx context.Context, body PostJsonJSONRequestBody, reqEditors ...RequestEditorFn)
| 192 | } |
| 193 | |
| 194 | func (c *Client) PostJson(ctx context.Context, body PostJsonJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { |
| 195 | req, err := NewPostJsonRequest(c.Server, body) |
| 196 | if err != nil { |
| 197 | return nil, err |
| 198 | } |
| 199 | req = req.WithContext(ctx) |
| 200 | if err := c.applyEditors(ctx, req, reqEditors); err != nil { |
| 201 | return nil, err |
| 202 | } |
| 203 | return c.Client.Do(req) |
| 204 | } |
| 205 | |
| 206 | func (c *Client) GetJson(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { |
| 207 | req, err := NewGetJsonRequest(c.Server) |
nothing calls this directly
no test coverage detected