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

Method PostBothWithBody

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

Source from the content-addressed store, hash-verified

144}
145
146func (c *Client) PostBothWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
147 req, err := NewPostBothRequestWithBody(c.Server, contentType, body)
148 if err != nil {
149 return nil, err
150 }
151 req = req.WithContext(ctx)
152 if err := c.applyEditors(ctx, req, reqEditors); err != nil {
153 return nil, err
154 }
155 return c.Client.Do(req)
156}
157
158func (c *Client) PostBoth(ctx context.Context, body PostBothJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
159 req, err := NewPostBothRequest(c.Server, body)

Callers

nothing calls this directly

Calls 3

applyEditorsMethod · 0.95
DoMethod · 0.65

Tested by

no test coverage detected