SetBodyXmlString set the request Body as string and set Content-Type header as "text/xml; charset=utf-8"
(body string)
| 938 | // SetBodyXmlString set the request Body as string and set Content-Type header |
| 939 | // as "text/xml; charset=utf-8" |
| 940 | func (r *Request) SetBodyXmlString(body string) *Request { |
| 941 | return r.SetBodyXmlBytes([]byte(body)) |
| 942 | } |
| 943 | |
| 944 | // SetBodyXmlBytes set the request Body as []byte and set Content-Type header |
| 945 | // as "text/xml; charset=utf-8" |