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

Method WriteJsonBlob

context.go:635–637  ·  view source on GitHub ↗

WriteJsonBlob write json []byte to response

(b []byte)

Source from the content-addressed store, hash-verified

633
634// WriteJsonBlob write json []byte to response
635func (ctx *HttpContext) WriteJsonBlob(b []byte) error {
636 return ctx.WriteJsonBlobC(defaultHttpCode, b)
637}
638
639// WriteJsonBlobC write (httpCode, json []byte) to response
640func (ctx *HttpContext) WriteJsonBlobC(code int, b []byte) error {

Callers

nothing calls this directly

Calls 1

WriteJsonBlobCMethod · 0.95

Tested by

no test coverage detected