🎨 Format MIME type contants

This commit is contained in:
Maxim Lebedev 2021-11-15 02:08:21 +05:00
parent 1ebefe9a76
commit 7e77b78451
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 9 additions and 4 deletions

View File

@ -1,8 +1,13 @@
package common
const charsetUTF8 = "charset=UTF-8"
const (
MIMEApplicationJSON string = "application/json"
MIMEApplicationXWWWFormUrlencoded string = "application/x-www-form-urlencoded"
MIMETextHTML string = "text/html"
MIMETextPlain string = "text/plain"
MIMEApplicationForm string = "application/x-www-form-urlencoded"
MIMEApplicationJSON string = "application/json"
MIMEApplicationJSONCharsetUTF8 string = MIMEApplicationJSON + "; " + charsetUTF8
MIMETextHTML string = "text/html"
MIMETextHTMLCharsetUTF8 string = MIMETextHTML + "; " + charsetUTF8
MIMETextPlain string = "text/plain"
MIMETextPlainCharsetUTF8 string = MIMETextPlain + "; " + charsetUTF8
)