SetXML sets the request body to an XML-encoded value.
(v any)
| 414 | |
| 415 | // SetXML sets the request body to an XML-encoded value. |
| 416 | func (r *Request) SetXML(v any) *Request { |
| 417 | r.body = v |
| 418 | r.bodyType = xmlBody |
| 419 | return r |
| 420 | } |
| 421 | |
| 422 | // SetCBOR sets the request body to a CBOR-encoded value. |
| 423 | func (r *Request) SetCBOR(v any) *Request { |
no outgoing calls