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

Method WriteString

context.go:578–580  ·  view source on GitHub ↗

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

(contents ...interface{})

Source from the content-addressed store, hash-verified

576
577// WriteString write (200, string, text/plain) to response
578func (ctx *HttpContext) WriteString(contents ...interface{}) error {
579 return ctx.WriteStringC(defaultHttpCode, contents...)
580}
581
582// WriteStringC write (httpCode, string, text/plain) to response
583func (ctx *HttpContext) WriteStringC(code int, contents ...interface{}) error {

Callers

nothing calls this directly

Calls 1

WriteStringCMethod · 0.95

Tested by

no test coverage detected