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

Function NewPostBothRequest

internal/test/client/client.gen.go:279–287  ·  view source on GitHub ↗

NewPostBothRequest calls the generic PostBoth builder with application/json body

(server string, body PostBothJSONRequestBody)

Source from the content-addressed store, hash-verified

277
278// NewPostBothRequest calls the generic PostBoth builder with application/json body
279func NewPostBothRequest(server string, body PostBothJSONRequestBody) (*http.Request, error) {
280 var bodyReader io.Reader
281 buf, err := json.Marshal(body)
282 if err != nil {
283 return nil, err
284 }
285 bodyReader = bytes.NewReader(buf)
286 return NewPostBothRequestWithBody(server, "application/json", bodyReader)
287}
288
289// NewPostBothRequestWithBody generates requests for PostBoth with any type of body
290func NewPostBothRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) {

Callers 1

PostBothMethod · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…