MCPcopy Index your code
hub / github.com/labstack/echo / XMLPretty

Method XMLPretty

context.go:626–628  ·  view source on GitHub ↗

XMLPretty sends a pretty-print XML with status code.

(code int, i any, indent string)

Source from the content-addressed store, hash-verified

624
625// XMLPretty sends a pretty-print XML with status code.
626func (c *Context) XMLPretty(code int, i any, indent string) (err error) {
627 return c.xml(code, i, indent)
628}
629
630// XMLBlob sends an XML blob response with status code.
631func (c *Context) XMLBlob(code int, b []byte) (err error) {

Callers 2

TestContextXMLPrettyFunction · 0.95

Calls 1

xmlMethod · 0.95

Tested by 2

TestContextXMLPrettyFunction · 0.76