MCPcopy Index your code
hub / github.com/oapi-codegen/oapi-codegen / PostOtherWithBody

Method PostOtherWithBody

internal/test/client/client.gen.go:218–228  ·  view source on GitHub ↗
(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn)

Source from the content-addressed store, hash-verified

216}
217
218func (c *Client) PostOtherWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
219 req, err := NewPostOtherRequestWithBody(c.Server, contentType, body)
220 if err != nil {
221 return nil, err
222 }
223 req = req.WithContext(ctx)
224 if err := c.applyEditors(ctx, req, reqEditors); err != nil {
225 return nil, err
226 }
227 return c.Client.Do(req)
228}
229
230func (c *Client) GetOther(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
231 req, err := NewGetOtherRequest(c.Server)

Callers

nothing calls this directly

Calls 3

applyEditorsMethod · 0.95
DoMethod · 0.65

Tested by

no test coverage detected