MCPcopy Create free account
hub / github.com/devfeel/dotweb / WriteHtml

Method WriteHtml

context.go:589–591  ·  view source on GitHub ↗

WriteString write (200, string, text/html) to response

(contents ...interface{})

Source from the content-addressed store, hash-verified

587
588// WriteString write (200, string, text/html) to response
589func (ctx *HttpContext) WriteHtml(contents ...interface{}) error {
590 return ctx.WriteHtmlC(defaultHttpCode, contents...)
591}
592
593// WriteHtmlC write (httpCode, string, text/html) to response
594func (ctx *HttpContext) WriteHtmlC(code int, contents ...interface{}) error {

Callers

nothing calls this directly

Calls 1

WriteHtmlCMethod · 0.95

Tested by

no test coverage detected