WriteJsonp write jsonp string to response
(callback string, i interface{})
| 643 | |
| 644 | // WriteJsonp write jsonp string to response |
| 645 | func (ctx *HttpContext) WriteJsonp(callback string, i interface{}) error { |
| 646 | b, err := json.Marshal(i) |
| 647 | if err != nil { |
| 648 | return err |
| 649 | } |
| 650 | return ctx.WriteJsonpBlob(callback, b) |
| 651 | } |
| 652 | |
| 653 | // WriteJsonpBlob write jsonp string as []byte to response |
| 654 | func (ctx *HttpContext) WriteJsonpBlob(callback string, b []byte) error { |
nothing calls this directly
no test coverage detected