Provides HTTP constants.
More...
Provides HTTP constants.
#define MIME_TYPE_MAP |
( |
|
XX | ) |
|
Value: \
\
XX(HTML,
"html",
"text/html")
\ XX(TEXT,
"txt",
"text/plain")
\ XX(JS,
"js",
"text/javascript")
\ XX(CSS,
"css",
"text/css")
\ XX(XML,
"xml",
"text/xml")
\ XX(JSON,
"json",
"application/json") \
\
XX(JPEG,
"jpg",
"image/jpeg")
\ XX(GIF,
"git",
"image/gif")
\ XX(PNG,
"png",
"image/png")
\ XX(SVG,
"svg",
"image/svg+xml")
\ XX(ICO,
"ico",
"image/x-icon") \
\
XX(GZIP,
"gzip",
"application/x-gzip")
\ XX(ZIP,
"zip",
"application/zip") \
\
XX(BINARY,
"",
"application/octet-stream")
\ XX(FORM_URL_ENCODED,
"",
"application/x-www-form-urlencoded")
\ XX(FORM_MULTIPART,
"",
"multipart/form-data")
#define XX(name, str, port)
Common URI scheme strings.
Definition: Url.h:54
Basic MIME types and file extensions.
- Note
- Each MIME type can have only one associated file extension. Where other extensions
- Todo:
- Consider using sz-strings for file extension to enable matching to alternative file extensions