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

Method PostVendorJsonWithBody

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

Source from the content-addressed store, hash-verified

252}
253
254func (c *Client) PostVendorJsonWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) {
255 req, err := NewPostVendorJsonRequestWithBody(c.Server, contentType, body)
256 if err != nil {
257 return nil, err
258 }
259 req = req.WithContext(ctx)
260 if err := c.applyEditors(ctx, req, reqEditors); err != nil {
261 return nil, err
262 }
263 return c.Client.Do(req)
264}
265
266func (c *Client) PostVendorJsonWithApplicationVndAPIPlusJSONBody(ctx context.Context, body PostVendorJsonApplicationVndAPIPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) {
267 req, err := NewPostVendorJsonRequestWithApplicationVndAPIPlusJSONBody(c.Server, body)

Callers

nothing calls this directly

Calls 3

applyEditorsMethod · 0.95
DoMethod · 0.65

Tested by

no test coverage detected