-
Notifications
You must be signed in to change notification settings - Fork 0
/
contants.go
45 lines (41 loc) · 1.52 KB
/
contants.go
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
package ginx
const (
I18nZH = "zh"
I18nEN = "en"
LangHeader = "GinX-Lang-Header"
)
const (
EnvTag = "env"
DefaultConfig = "config.yml"
)
const OperationName = "x-operation-name"
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types
const (
MineApplicationJson = "application/json"
MineApplicationOctetStream = "application/octet-stream"
MineApplicationOgg = "application/ogg"
MineApplicationXML = "application/xml"
MineApplicationUrlencoded = "application/x-www-form-urlencoded"
MineMultipartForm = "multipart/form-data"
MineApplicationProtobuf = "application/x-protobuf"
MineApplicationMSGPackX = "application/x-msgpack"
MineApplicationMSGPack = "application/msgpack"
MineApplicationYaml = "application/x-yaml"
MineApplicationToml = "application/toml"
MineAudioMidi = "audio/midi"
MineAudioMpeg = "audio/mpeg"
MineAudioOgg = "audio/ogg"
MineAudioWave = "audio/wav"
MineImageBmp = "image/bmp"
MineImageGif = "image/gif"
MineImageJpeg = "image/jpeg"
MineImagePng = "image/png"
MineImageSvg = "image/svg+xml"
MineImageWebp = "image/webp"
MineTextCss = "text/css"
MineTextHtml = "text/html"
MineTextXml = "text/xml"
MineTextPlain = "text/plain"
MineVideoOgg = "video/ogg"
MineVideoWebm = "video/webm"
)