MCPcopy
hub / github.com/labstack/echo / XML

Method XML

context.go:621–623  ·  view source on GitHub ↗

XML sends an XML response with status code.

(code int, i any)

Source from the content-addressed store, hash-verified

619
620// XML sends an XML response with status code.
621func (c *Context) XML(code int, i any) (err error) {
622 return c.xml(code, i, "")
623}
624
625// XMLPretty sends a pretty-print XML with status code.
626func (c *Context) XMLPretty(code int, i any, indent string) (err error) {

Callers 2

BenchmarkAllocXMLFunction · 0.95
TestContextXMLFunction · 0.95

Calls 1

xmlMethod · 0.95

Tested by 2

BenchmarkAllocXMLFunction · 0.76
TestContextXMLFunction · 0.76