MCPcopy
hub / github.com/labstack/echo / JSONBlob

Method JSONBlob

context.go:579–581  ·  view source on GitHub ↗

JSONBlob sends a JSON blob response with status code.

(code int, b []byte)

Source from the content-addressed store, hash-verified

577
578// JSONBlob sends a JSON blob response with status code.
579func (c *Context) JSONBlob(code int, b []byte) (err error) {
580 return c.Blob(code, MIMEApplicationJSON, b)
581}
582
583// JSONP sends a JSONP response with status code. It uses `callback` to construct
584// the JSONP payload.

Callers 1

TestContextJSONBlobFunction · 0.95

Calls 1

BlobMethod · 0.95

Tested by 1

TestContextJSONBlobFunction · 0.76