@zerows/web-zone
Version:
Zero UI ( Zone )
72 lines • 2.25 kB
JavaScript
export default {
// Http Header Name
X_HEADER: {
X_APP_KEY: "X-App-Key",
X_APP_ID: "X-App-Id",
X_SIGMA: "X-Sigma",
X_LANG: "X-Lang",
X_SESSION: "X-Session-Id"
},
// Http Method
HTTP_METHOD: {
GET: "get",
POST: "post",
PUT: "put",
DELETE: "delete"
},
// MIME
MIMES: {
JSON: "application/json",
MULTIPART: "multipart/form-data",
FORM: "application/x-www-form-urlencoded",
STREAM: "application/octet-stream"
},
// HTTP 1.1
HTTP11: {
"ACCEPT": "Accept",
"ACCEPT_CHARSET": "Accept-Charset",
"ACCEPT_ENCODING": "Accept-Encoding",
"ACCEPT_LANGUAGE": "Accept-Language",
"ACCEPT_RANGES": "Accept-Ranges",
"AGE": "Age",
"ALLOW": "Allow",
"AUTHORIZATION": "Authorization",
"CACHE_CONTROL": "Cache-Control",
"CONNECTION": "Connection",
"CONTENT_BASE": "Content-Base",
"CONTENT_ENCODING": "Content-Encoding",
"CONTENT_LENGTH": "Content-Length",
"CONTENT_LOCATION": "Content-Location",
"CONTENT_MD5": "Content-MD5",
"CONTENT_RANGE": "Content-Range",
"CONTENT_TYPE": "Content-Type",
"DATE": "Date",
"ETAG": "ETag",
"EXPIRES": "Expires",
"FORM": "Form",
"HOST": "Host",
"IF_MODIFIED_SINCE": "If-Modified-Since",
"IF_MATCH": "If-Match",
"IF_NONE_MATCH": "If-None-Match",
"IF_RANGE": "If-Range",
"IF_UNMODIFIED_SINCE": "If-Unmodified-Since",
"LAST_MODIFIED": "Last-Modified",
"LOCATION": "Location",
"MAX_FORWARDS": "Max-Forwards",
"PRAGMA": "Pragma",
"PROXY_AUTHENTICATE": "Proxy-Authenticate",
"PROXY_AUTHORIZATION": "Proxy-Authorization",
"PUBLIC": "Public",
"RANGE": "Range",
"REFENER": "Refener",
"RETRY_AFTER": "Retry-After",
"SERVER": "Server",
"TRANSFER_ENCODING": "Transfer-Encoding",
"UPGRADE": "Upgrade",
"USER_AGENT": "User-Agent",
"VARY": "Vary",
"WARNING": "Warning",
"WWW_AUTHENTICATE": "WWW-Authenticate",
"XSRF_TOKEN": "X-XSRF-TOKEN"
},
}