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

Method SetBodyXmlBytes

request.go:946–949  ·  view source on GitHub ↗

SetBodyXmlBytes set the request Body as []byte and set Content-Type header as "text/xml; charset=utf-8"

(body []byte)

Source from the content-addressed store, hash-verified

944// SetBodyXmlBytes set the request Body as []byte and set Content-Type header
945// as "text/xml; charset=utf-8"
946func (r *Request) SetBodyXmlBytes(body []byte) *Request {
947 r.SetContentType(header.XmlContentType)
948 return r.SetBodyBytes(body)
949}
950
951// SetBodyXmlMarshal set the request Body that marshaled from object, and
952// set Content-Type header as "text/xml; charset=utf-8"

Callers 4

SetBodyXmlStringMethod · 0.95
SetBodyXmlMarshalMethod · 0.95
SetBodyXmlBytesFunction · 0.80
TestSetBodyFunction · 0.80

Calls 2

SetContentTypeMethod · 0.95
SetBodyBytesMethod · 0.95

Tested by 1

TestSetBodyFunction · 0.64