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

Method HTML

context.go:514–516  ·  view source on GitHub ↗

HTML sends an HTTP response with status code.

(code int, html string)

Source from the content-addressed store, hash-verified

512
513// HTML sends an HTTP response with status code.
514func (c *Context) HTML(code int, html string) (err error) {
515 return c.HTMLBlob(code, stringToBytes(html))
516}
517
518// HTMLBlob sends an HTTP blob response with status code.
519func (c *Context) HTMLBlob(code int, b []byte) (err error) {

Callers 1

TestContextHTMLFunction · 0.95

Calls 2

HTMLBlobMethod · 0.95
stringToBytesFunction · 0.85

Tested by 1

TestContextHTMLFunction · 0.76