SetJSON sets the request body to a JSON-encoded value.
(v any)
| 407 | |
| 408 | // SetJSON sets the request body to a JSON-encoded value. |
| 409 | func (r *Request) SetJSON(v any) *Request { |
| 410 | r.body = v |
| 411 | r.bodyType = jsonBody |
| 412 | return r |
| 413 | } |
| 414 | |
| 415 | // SetXML sets the request body to an XML-encoded value. |
| 416 | func (r *Request) SetXML(v any) *Request { |
no outgoing calls