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

Method GetBoth

internal/test/client/client.gen.go:170–180  ·  view source on GitHub ↗
(ctx context.Context, reqEditors ...RequestEditorFn)

Source from the content-addressed store, hash-verified

168}
169
170func (c *Client) GetBoth(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
171 req, err := NewGetBothRequest(c.Server)
172 if err != nil {
173 return nil, err
174 }
175 req = req.WithContext(ctx)
176 if err := c.applyEditors(ctx, req, reqEditors); err != nil {
177 return nil, err
178 }
179 return c.Client.Do(req)
180}
181
182func (c *Client) PostJsonWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
183 req, err := NewPostJsonRequestWithBody(c.Server, contentType, body)

Callers

nothing calls this directly

Calls 3

applyEditorsMethod · 0.95
NewGetBothRequestFunction · 0.85
DoMethod · 0.65

Tested by

no test coverage detected