MCPcopy Create free account
hub / github.com/corestoreio/pkg / JSONP

Method JSONP

net/response/response.go:179–198  ·  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 interface{})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TestPrintJSONPFunction · 0.80
TestPrintJSONPErrorFunction · 0.80

Calls 11

WriteStringMethod · 0.80
WriteRuneMethod · 0.80
EncodeMethod · 0.80
GetMethod · 0.65
NewEncoderMethod · 0.65
SetMethod · 0.65
WriteMethod · 0.65
PutMethod · 0.45
HeaderMethod · 0.45
WriteHeaderMethod · 0.45
BytesMethod · 0.45

Tested by 2

TestPrintJSONPFunction · 0.64
TestPrintJSONPErrorFunction · 0.64