(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn)
| 533 | } |
| 534 | |
| 535 | func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error { |
| 536 | for _, r := range c.RequestEditors { |
| 537 | if err := r(ctx, req); err != nil { |
| 538 | return err |
| 539 | } |
| 540 | } |
| 541 | for _, r := range additionalEditors { |
| 542 | if err := r(ctx, req); err != nil { |
| 543 | return err |
| 544 | } |
| 545 | } |
| 546 | return nil |
| 547 | } |
| 548 | |
| 549 | // ClientWithResponses builds on ClientInterface to offer response payloads |
| 550 | type ClientWithResponses struct { |
no outgoing calls
no test coverage detected