JSONBlob sends a JSON blob response with status code.
(code int, b []byte)
| 577 | |
| 578 | // JSONBlob sends a JSON blob response with status code. |
| 579 | func (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. |