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

Method WriteHtmlC

context.go:594–597  ·  view source on GitHub ↗

WriteHtmlC write (httpCode, string, text/html) to response

(code int, contents ...interface{})

Source from the content-addressed store, hash-verified

592
593// WriteHtmlC write (httpCode, string, text/html) to response
594func (ctx *HttpContext) WriteHtmlC(code int, contents ...interface{}) error {
595 content := fmt.Sprint(contents...)
596 return ctx.WriteBlobC(code, MIMETextHTMLCharsetUTF8, []byte(content))
597}
598
599// WriteBlob write []byte content to response
600func (ctx *HttpContext) WriteBlob(contentType string, b []byte) error {

Callers 1

WriteHtmlMethod · 0.95

Calls 1

WriteBlobCMethod · 0.95

Tested by

no test coverage detected