MCPcopy
hub / github.com/gofiber/fiber / CBOR

Method CBOR

res_interface_gen.go:78–78  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 5

Test_Ctx_CBORFunction · 0.65
Benchmark_Ctx_CBORFunction · 0.65
Test_Response_BodyFunction · 0.65
NewFunction · 0.65

Implementers 1

Calls

no outgoing calls

Tested by 4

Test_Ctx_CBORFunction · 0.52
Benchmark_Ctx_CBORFunction · 0.52
Test_Response_BodyFunction · 0.52