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

Method GetJson

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

Source from the content-addressed store, hash-verified

204}
205
206func (c *Client) GetJson(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) {
207 req, err := NewGetJsonRequest(c.Server)
208 if err != nil {
209 return nil, err
210 }
211 req = req.WithContext(ctx)
212 if err := c.applyEditors(ctx, req, reqEditors); err != nil {
213 return nil, err
214 }
215 return c.Client.Do(req)
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)

Callers

nothing calls this directly

Calls 3

applyEditorsMethod · 0.95
NewGetJsonRequestFunction · 0.85
DoMethod · 0.65

Tested by

no test coverage detected