MCPcopy
hub / github.com/gofiber/fiber / SetXML

Method SetXML

client/request.go:416–420  ·  view source on GitHub ↗

SetXML sets the request body to an XML-encoded value.

(v any)

Source from the content-addressed store, hash-verified

414
415// SetXML sets the request body to an XML-encoded value.
416func (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.
423func (r *Request) SetCBOR(v any) *Request {

Calls

no outgoing calls