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

Method WriteJsonBlobC

context.go:640–642  ·  view source on GitHub ↗

WriteJsonBlobC write (httpCode, json []byte) to response

(code int, b []byte)

Source from the content-addressed store, hash-verified

638
639// WriteJsonBlobC write (httpCode, json []byte) to response
640func (ctx *HttpContext) WriteJsonBlobC(code int, b []byte) error {
641 return ctx.WriteBlobC(code, MIMEApplicationJSONCharsetUTF8, b)
642}
643
644// WriteJsonp write jsonp string to response
645func (ctx *HttpContext) WriteJsonp(callback string, i interface{}) error {

Callers 2

WriteJsonCMethod · 0.95
WriteJsonBlobMethod · 0.95

Calls 1

WriteBlobCMethod · 0.95

Tested by

no test coverage detected