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

Method SetBodyXmlString

request.go:940–942  ·  view source on GitHub ↗

SetBodyXmlString set the request Body as string and set Content-Type header as "text/xml; charset=utf-8"

(body string)

Source from the content-addressed store, hash-verified

938// SetBodyXmlString set the request Body as string and set Content-Type header
939// as "text/xml; charset=utf-8"
940func (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"

Callers 2

SetBodyXmlStringFunction · 0.80
TestSetBodyFunction · 0.80

Calls 1

SetBodyXmlBytesMethod · 0.95

Tested by 1

TestSetBodyFunction · 0.64