File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,21 @@ const (
2323 ExchangeHeaders = "headers"
2424)
2525
26+ // MIME types constants
27+ const (
28+ MimeTextPlain = "text/plain"
29+ MimeApplicationJSON = "application/json"
30+ MimeApplicationOctetStream = "application/octet-stream"
31+ MimeApplicationXML = "application/xml"
32+ MimeTextXML = "text/xml"
33+ MimeApplicationProtobuf = "application/protobuf"
34+ MimeApplicationXProtobuf = "application/x-protobuf"
35+ MimeApplicationMsgPack = "application/msgpack"
36+ MimeApplicationAvro = "application/avro"
37+ MimeApplicationCloudEventsJSON = "application/cloudevents+json"
38+ MimeApplicationFormURLEncoded = "application/x-www-form-urlencoded"
39+ )
40+
2641var (
2742 // ErrClosed is returned when the channel or connection is not open
2843 ErrClosed = & Error {Code : ChannelError , Reason : "channel/connection is not open" }
You can’t perform that action at this time.
0 commit comments