MCPcopy Create free account
hub / github.com/imroc/req / SetBody

Function SetBody

request_wrapper.go:305–307  ·  view source on GitHub ↗

SetBody is a global wrapper methods which delegated to the default client, create a request and SetBody for request.

(body any)

Source from the content-addressed store, hash-verified

303// SetBody is a global wrapper methods which delegated
304// to the default client, create a request and SetBody for request.
305func SetBody(body any) *Request {
306 return defaultClient.R().SetBody(body)
307}
308
309// SetBodyBytes is a global wrapper methods which delegated
310// to the default client, create a request and SetBodyBytes for request.

Callers

nothing calls this directly

Calls 2

RMethod · 0.80
SetBodyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…