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

Method PostBoth

internal/test/client/client.gen.go:158–168  ·  view source on GitHub ↗
(ctx context.Context, body PostBothJSONRequestBody, reqEditors ...RequestEditorFn)

Source from the content-addressed store, hash-verified

156}
157
158func (c *Client) PostBoth(ctx context.Context, body PostBothJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
159 req, err := NewPostBothRequest(c.Server, body)
160 if err != nil {
161 return nil, err
162 }
163 req = req.WithContext(ctx)
164 if err := c.applyEditors(ctx, req, reqEditors); err != nil {
165 return nil, err
166 }
167 return c.Client.Do(req)
168}
169
170func (c *Client) GetBoth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
171 req, err := NewGetBothRequest(c.Server)

Callers

nothing calls this directly

Calls 3

applyEditorsMethod · 0.95
NewPostBothRequestFunction · 0.85
DoMethod · 0.65

Tested by

no test coverage detected