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

Method JSONP

context.go:585–587  ·  view source on GitHub ↗

JSONP sends a JSONP response with status code. It uses `callback` to construct the JSONP payload.

(code int, callback string, i any)

Source from the content-addressed store, hash-verified

583// JSONP sends a JSONP response with status code. It uses `callback` to construct
584// the JSONP payload.
585func (c *Context) JSONP(code int, callback string, i any) (err error) {
586 return c.jsonPBlob(code, callback, i)
587}
588
589// JSONPBlob sends a JSONP blob response with status code. It uses `callback`
590// to construct the JSONP payload.

Callers 2

BenchmarkAllocJSONPFunction · 0.95
TestContextJSONPFunction · 0.95

Calls 1

jsonPBlobMethod · 0.95

Tested by 2

BenchmarkAllocJSONPFunction · 0.76
TestContextJSONPFunction · 0.76