(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn)
| 329 | } |
| 330 | |
| 331 | func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error { |
| 332 | for _, r := range c.RequestEditors { |
| 333 | if err := r(ctx, req); err != nil { |
| 334 | return err |
| 335 | } |
| 336 | } |
| 337 | for _, r := range additionalEditors { |
| 338 | if err := r(ctx, req); err != nil { |
| 339 | return err |
| 340 | } |
| 341 | } |
| 342 | return nil |
| 343 | } |
| 344 | |
| 345 | // ClientWithResponses builds on ClientInterface to offer response payloads |
| 346 | type ClientWithResponses struct { |