CBOR converts any interface or string to CBOR encoded bytes. If the ctype parameter is given, this method will set the Content-Type header equal to ctype. If ctype is not given, The Content-Type header will be set to application/cbor.
(data any, ctype ...string)
| 76 | // Content-Type header equal to ctype. If ctype is not given, |
| 77 | // The Content-Type header will be set to application/cbor. |
| 78 | CBOR(data any, ctype ...string) error |
| 79 | // JSONP sends a JSON response with JSONP support. |
| 80 | // This method is identical to JSON, except that it opts-in to JSONP callback support. |
| 81 | // By default, the callback name is simply callback. |
no outgoing calls