blob: b92e013cc32b41ac9c87c093fead9240b6d0e282 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
package headers
type ContentType string
// String implements stringer interface
func (ct ContentType) String() string {
return string(ct)
}
type ContentEncoding string
// String implements stringer interface
func (ce ContentEncoding) String() string {
return string(ce)
}
const (
ContentTypeKey = "Content-Type"
ContentLength = "Content-Length"
ContentEncodingKey = "Content-Encoding"
ContentTypeAny ContentType = "*/*"
TypeApplicationJSON ContentType = "application/json"
TypeApplicationXML ContentType = "application/xml"
TypeApplicationOctetStream ContentType = "application/octet-stream"
TypeApplicationProtobuf ContentType = "application/protobuf"
TypeApplicationMsgpack ContentType = "application/msgpack"
TypeApplicationXSolomonSpack ContentType = "application/x-solomon-spack"
EncodingAny ContentEncoding = "*"
EncodingZSTD ContentEncoding = "zstd"
EncodingLZ4 ContentEncoding = "lz4"
EncodingGZIP ContentEncoding = "gzip"
EncodingDeflate ContentEncoding = "deflate"
TypeTextPlain ContentType = "text/plain"
TypeTextHTML ContentType = "text/html"
TypeTextCSV ContentType = "text/csv"
TypeTextCmd ContentType = "text/cmd"
TypeTextCSS ContentType = "text/css"
TypeTextXML ContentType = "text/xml"
TypeTextMarkdown ContentType = "text/markdown"
TypeImageAny ContentType = "image/*"
TypeImageJPEG ContentType = "image/jpeg"
TypeImageGIF ContentType = "image/gif"
TypeImagePNG ContentType = "image/png"
TypeImageSVG ContentType = "image/svg+xml"
TypeImageTIFF ContentType = "image/tiff"
TypeImageWebP ContentType = "image/webp"
TypeVideoMPEG ContentType = "video/mpeg"
TypeVideoMP4 ContentType = "video/mp4"
TypeVideoOgg ContentType = "video/ogg"
TypeVideoWebM ContentType = "video/webm"
)
|