2.0.4 • Published 2 years ago
@lucassith/http-constants v2.0.4
@lucassith/http-constants / Exports
@lucassith/http-constants
Table of contents
Variables
Variables
CSPS
• Const
CSPS: Object
Type declaration
Name | Type |
---|---|
NONE | string |
NONE_QTD | string |
SELF | string |
SELF_QTD | string |
STRICT_DYNAMIC | string |
STRICT_DYNAMIC_QTD | string |
UNSAFE_EVAL | string |
UNSAFE_EVAL_QTD | string |
UNSAFE_INLINE | string |
UNSAFE_INLINE_QTD | string |
Defined in
CacheControls
• Const
CacheControls: Object
Type declaration
Name | Type |
---|---|
IMMUTABLE | string |
MAX_AGE | string |
MAX_STALE | string |
MIN_FRESH | string |
MUST_REVALIDATE | string |
NO_CACHE | string |
NO_STORE | string |
NO_TRANSFORM | string |
ONLY_IF_CACHED | string |
PRIVATE | string |
PROXY_REVALIDATE | string |
PUBLIC | string |
STALE_IF_ERROR | string |
STALE_WHILE_REVALIDATE | string |
S_MAXAGE | string |
Defined in
CacheControls/CacheControls.ts:1
ContentEncodings
• Const
ContentEncodings: Object
Type declaration
Name | Type |
---|---|
AES128GCM | string |
BR | string |
COMPRESS | string |
DEFLATE | string |
EXI | string |
GZIP | string |
IDENTITY | string |
PACK200_GZIP | string |
SDCH | string |
X_COMPRESS | string |
X_GZIP | string |
Defined in
ContentEncodings/ContentEncodings.ts:1
Headers
• Const
Headers: Object
Type declaration
Name | Type |
---|---|
ACCEPT | string |
ACCEPT_CH | string |
ACCEPT_CHARSET | string |
ACCEPT_CH_LIFETIME | string |
ACCEPT_DATETIME | string |
ACCEPT_ENCODING | string |
ACCEPT_LANGUAGE | string |
ACCEPT_PATCH | string |
ACCEPT_RANGES | string |
ACCESS_CONTROL_ALLOW_CREDENTIALS | string |
ACCESS_CONTROL_ALLOW_HEADERS | string |
ACCESS_CONTROL_ALLOW_METHODS | string |
ACCESS_CONTROL_ALLOW_ORIGIN | string |
ACCESS_CONTROL_EXPOSE_HEADERS | string |
ACCESS_CONTROL_MAX_AGE | string |
ACCESS_CONTROL_REQUEST_HEADERS | string |
ACCESS_CONTROL_REQUEST_METHOD | string |
AGE | string |
ALLOW | string |
ALTERNATES | string |
ALT_SVC | string |
AUTHORIZATION | string |
A_IM | string |
CACHE_CONTROL | string |
CONNECTION | string |
CONTENT_DISPOSITION | string |
CONTENT_DPR | string |
CONTENT_ENCODING | string |
CONTENT_LANGUAGE | string |
CONTENT_LENGTH | string |
CONTENT_LOCATION | string |
CONTENT_MD5 | string |
CONTENT_RANGE | string |
CONTENT_SECURITY_POLICY | string |
CONTENT_SECURITY_POLICY_REPORT_ONLY | string |
CONTENT_TYPE | string |
CONTENT_VERSION | string |
COOKIE | string |
DATE | string |
DELTA_BASE | string |
DERIVED_FROM | string |
DNT | string |
DOWNLINK | string |
DPR | string |
EARLY_DATA | string |
ETAG | string |
EXPECT | string |
EXPECT_CT | string |
EXPIRES | string |
FORWARDED | string |
FROM | string |
FRONT_END_HTTPS | string |
HOST | string |
IF_MATCH | string |
IF_MODIFIED_SINCE | string |
IF_NONE_MATCH | string |
IF_RANGE | string |
IF_UNMODIFIED_SINCE | string |
IM | string |
KEEP_ALIVE | string |
LARGE_ALLOCATION | string |
LAST_EVENT_ID | string |
LAST_MODIFIED | string |
LINK | string |
LOCATION | string |
MAX_FORWARDS | string |
MIME_VERSION | string |
ORIGIN | string |
P3P | string |
PING_FROM | string |
PING_TO | string |
PRAGMA | string |
PROXY_AUTHENTICATE | string |
PROXY_AUTHORIZATION | string |
PROXY_CONNECTION | string |
PUBLIC | string |
PUBLIC_KEY_PINS | string |
PUBLIC_KEY_PINS_REPORT_ONLY | string |
RANGE | string |
REFERER | string |
REFERRER_POLICY | string |
REFRESH | string |
RETRY_AFTER | string |
SAVE_DATA | string |
SEC_WEBSOCKET_ACCEPT | string |
SEC_WEBSOCKET_EXTENSIONS | string |
SEC_WEBSOCKET_KEY | string |
SEC_WEBSOCKET_PROTOCOL | string |
SEC_WEBSOCKET_VERSION | string |
SERVER | string |
SERVER_TIMING | string |
SET_COOKIE | string |
SOURCEMAP | string |
STATUS | string |
STRICT_TRANSPORT_SECURITY | string |
TE | string |
TIMING_ALLOW_ORIGIN | string |
TITLE | string |
TK | string |
TRAILER | string |
TRANSFER_ENCODING | string |
UPGRADE | string |
UPGRADE_INSECURE_REQUESTS | string |
USER_AGENT | string |
VARY | string |
VIA | string |
VIEWPORT_WIDTH | string |
WARNING | string |
WIDTH | string |
WWW_AUTHENTICATE | string |
X_ATT_DEVICEID | string |
X_CONTENT_DURATION | string |
X_CONTENT_SECURITY_POLICY | string |
X_CONTENT_TYPE_OPTIONS | string |
X_CORRELATION_ID | string |
X_CSRF_TOKEN | string |
X_DNS_PREFETCH_CONTROL | string |
X_DOWNLOAD_OPTIONS | string |
X_FORWARDED_FOR | string |
X_FORWARDED_HOST | string |
X_FORWARDED_PROTO | string |
X_FRAME_OPTIONS | string |
X_HTTP_METHOD_OVERRIDE | string |
X_PERMITTED_CROSS_DOMAIN_POLICIES | string |
X_POWERED_BY | string |
X_REQUESTED_WITH | string |
X_REQUEST_ID | string |
X_ROBOTS_TAG | string |
X_UA_COMPATIBLE | string |
X_UIDH | string |
X_WAP_PROFILE | string |
X_WEBKIT_CSP | string |
X_XSS_PROTECTION | string |
Defined in
IsStatusCode
• Const
IsStatusCode: Object
Type declaration
Name | Type |
---|---|
ClientErr | (code : number ) => boolean |
Info | (code : number ) => boolean |
Redirect | (code : number ) => boolean |
ServerErr | (code : number ) => boolean |
Success | (code : number ) => boolean |
Defined in
Methods
• Const
Methods: Object
Type declaration
Name | Type |
---|---|
CONNECT | string |
COPY | string |
DELETE | string |
GET | string |
HEAD | string |
LINK | string |
LOCK | string |
OPTIONS | string |
PATCH | string |
POST | string |
PROPFIND | string |
PURGE | string |
PUT | string |
TRACE | string |
UNLINK | string |
UNLOCK | string |
VIEW | string |
Defined in
MimeTypes
• Const
MimeTypes: Object
Type declaration
Name | Type |
---|---|
Application | { ATOM_XML : string = 'application/atom+xml'; EDIFACT : string = 'application/EDIFACT'; EDI_X12 : string = 'application/EDI-X12'; FONT_WOFF : string = 'application/font-woff'; GZIP : string = 'application/gzip'; JAVASCRIPT : string = 'application/javascript'; JSON : string = 'application/json'; OCTET_STREAM : string = 'application/octet-stream'; OGG : string = 'application/ogg'; PDF : string = 'application/pdf'; POSTSCRIPT : string = 'application/postscript'; Pkcs : { PKCS12 : string = 'application/x-pkcs12'; PKCS7_CERTIFICATES : string = 'application/x-pkcs7-certificates'; PKCS7_CERTREQRESP : string = 'application/x-pkcs7-certreqresp'; PKCS7_MIME : string = 'application/x-pkcs7-mime'; PKCS7_SIGNATURE : string = 'application/x-pkcs7-signature' } ; SOAP_XML : string = 'application/soap+xml'; X : { DVI : string = 'application/x-dvi'; FONT_TTF : string = 'application/x-font-ttf'; JAVASCRIPT : string = 'application/x-javascript'; JQUERY_TMPL : string = 'application/x-jquery-tmpl'; LATEX : string = 'application/x-latex'; RAR_COMPRESSED : string = 'application/x-rar-compressed'; SHOCKWAVE_FLASH : string = 'application/x-shockwave-flash'; STUFFIT : string = 'application/x-stuffit'; TAR : string = 'application/x-tar'; WWW_FORM_URLENCODED : string = 'application/x-www-form-urlencoded' } ; XHTML_XML : string = 'application/xhtml+xml'; XML : string = 'application/xml'; XML_DTD : string = 'application/xml-dtd'; XOP_XML : string = 'application/xop+xml'; X_BITTORRENT : string = 'application/x-bittorrent'; X_TEX : string = 'application/x-tex'; ZIP : string = 'application/zip' } |
Application.ATOM_XML | string |
Application.EDIFACT | string |
Application.EDI_X12 | string |
Application.FONT_WOFF | string |
Application.GZIP | string |
Application.JAVASCRIPT | string |
Application.JSON | string |
Application.OCTET_STREAM | string |
Application.OGG | string |
Application.PDF | string |
Application.POSTSCRIPT | string |
Application.Pkcs | { PKCS12 : string = 'application/x-pkcs12'; PKCS7_CERTIFICATES : string = 'application/x-pkcs7-certificates'; PKCS7_CERTREQRESP : string = 'application/x-pkcs7-certreqresp'; PKCS7_MIME : string = 'application/x-pkcs7-mime'; PKCS7_SIGNATURE : string = 'application/x-pkcs7-signature' } |
Application.Pkcs.PKCS12 | string |
Application.Pkcs.PKCS7_CERTIFICATES | string |
Application.Pkcs.PKCS7_CERTREQRESP | string |
Application.Pkcs.PKCS7_MIME | string |
Application.Pkcs.PKCS7_SIGNATURE | string |
Application.SOAP_XML | string |
Application.X | { DVI : string = 'application/x-dvi'; FONT_TTF : string = 'application/x-font-ttf'; JAVASCRIPT : string = 'application/x-javascript'; JQUERY_TMPL : string = 'application/x-jquery-tmpl'; LATEX : string = 'application/x-latex'; RAR_COMPRESSED : string = 'application/x-rar-compressed'; SHOCKWAVE_FLASH : string = 'application/x-shockwave-flash'; STUFFIT : string = 'application/x-stuffit'; TAR : string = 'application/x-tar'; WWW_FORM_URLENCODED : string = 'application/x-www-form-urlencoded' } |
Application.X.DVI | string |
Application.X.FONT_TTF | string |
Application.X.JAVASCRIPT | string |
Application.X.JQUERY_TMPL | string |
Application.X.LATEX | string |
Application.X.RAR_COMPRESSED | string |
Application.X.SHOCKWAVE_FLASH | string |
Application.X.STUFFIT | string |
Application.X.TAR | string |
Application.X.WWW_FORM_URLENCODED | string |
Application.XHTML_XML | string |
Application.XML | string |
Application.XML_DTD | string |
Application.XOP_XML | string |
Application.X_BITTORRENT | string |
Application.X_TEX | string |
Application.ZIP | string |
Audio | { AAC : string = 'audio/aac'; BASIC : string = 'audio/basic'; L24 : string = 'audio/L24'; MP4 : string = 'audio/mp4'; MPEG : string = 'audio/mpeg'; OGG : string = 'audio/ogg'; VND_RN_REALAUDIO : string = 'audio/vnd.rn-realaudio'; VND_WAVE : string = 'audio/vnd.wave'; VORBIS : string = 'audio/vorbis'; WEBM : string = 'audio/webm'; X_MS_WAX : string = 'audio/x-ms-wax'; X_MS_WMA : string = 'audio/x-ms-wma' } |
Audio.AAC | string |
Audio.BASIC | string |
Audio.L24 | string |
Audio.MP4 | string |
Audio.MPEG | string |
Audio.OGG | string |
Audio.VND_RN_REALAUDIO | string |
Audio.VND_WAVE | string |
Audio.VORBIS | string |
Audio.WEBM | string |
Audio.X_MS_WAX | string |
Audio.X_MS_WMA | string |
Image | { GIF : string = 'image/gif'; JPEG : string = 'image/jpeg'; PJPEG : string = 'image/pjpeg'; PNG : string = 'image/png'; SVG_XML : string = 'image/svg+xml'; TIFF : string = 'image/tiff'; VND_MICROSOFT_ICON : string = 'image/vnd.microsoft.icon'; VND_WAP_WBMP : string = 'image/vnd.wap.wbmp'; WEBP : string = 'image/webp' } |
Image.GIF | string |
Image.JPEG | string |
Image.PJPEG | string |
Image.PNG | string |
Image.SVG_XML | string |
Image.TIFF | string |
Image.VND_MICROSOFT_ICON | string |
Image.VND_WAP_WBMP | string |
Image.WEBP | string |
Message | { HTTP : string = 'message/http'; IMDN_XML : string = 'message/imdn+xml'; PARTIAL : string = 'message/partial'; RFC822 : string = 'message/rfc822' } |
Message.HTTP | string |
Message.IMDN_XML | string |
Message.PARTIAL | string |
Message.RFC822 | string |
Model | { EXAMPLE : string = 'model/example'; IGES : string = 'model/iges'; MESH : string = 'model/mesh'; VRML : string = 'model/vrml'; X3D_BINARY : string = 'model/x3d+binary'; X3D_VRML : string = 'model/x3d+vrml'; X3D_XML : string = 'model/x3d+xml' } |
Model.EXAMPLE | string |
Model.IGES | string |
Model.MESH | string |
Model.VRML | string |
Model.X3D_BINARY | string |
Model.X3D_VRML | string |
Model.X3D_XML | string |
Multipart | { ALTERNATIVE : string = 'multipart/alternative'; ENCRYPTED : string = 'multipart/encrypted'; FORM_DATA : string = 'multipart/form-data'; MIXED : string = 'multipart/mixed'; RELATED : string = 'multipart/related'; SIGNED : string = 'multipart/signed' } |
Multipart.ALTERNATIVE | string |
Multipart.ENCRYPTED | string |
Multipart.FORM_DATA | string |
Multipart.MIXED | string |
Multipart.RELATED | string |
Multipart.SIGNED | string |
Pkcs | { X_PKCS12 : string = 'application/x-pkcs12'; X_PKCS7_CERTIFICATES : string = 'application/x-pkcs7-certificates'; X_PKCS7_CERTREQRESP : string = 'application/x-pkcs7-certreqresp'; X_PKCS7_MIME : string = 'application/x-pkcs7-mime'; X_PKCS7_SIGNATURE : string = 'application/x-pkcs7-signature' } |
Pkcs.X_PKCS12 | string |
Pkcs.X_PKCS7_CERTIFICATES | string |
Pkcs.X_PKCS7_CERTREQRESP | string |
Pkcs.X_PKCS7_MIME | string |
Pkcs.X_PKCS7_SIGNATURE | string |
Text | { CACHE_MANIFEST : string = 'text/cache-manifest'; CMD : string = 'text/cmd'; CSS : string = 'text/css'; CSV : string = 'text/csv'; HTML : string = 'text/html'; JAVASCRIPT : string = 'text/javascript'; MARKDOWN : string = 'text/markdown'; PHP : string = 'text/php'; PLAIN : string = 'text/plain'; XML : string = 'text/xml' } |
Text.CACHE_MANIFEST | string |
Text.CMD | string |
Text.CSS | string |
Text.CSV | string |
Text.HTML | string |
Text.JAVASCRIPT | string |
Text.MARKDOWN | string |
Text.PHP | string |
Text.PLAIN | string |
Text.XML | string |
Video | { MP4 : string = 'video/mp4'; MPEG : string = 'video/mpeg'; OGG : string = 'video/ogg'; QUICKTIME : string = 'video/quicktime'; WEBM : string = 'video/webm'; X_FLV : string = 'video/x-flv'; X_MS_WMV : string = 'video/x-ms-wmv'; _3GPP : string = 'video/3gpp'; _3GPP2 : string = 'video/3gpp2' } |
Video.MP4 | string |
Video.MPEG | string |
Video.OGG | string |
Video.QUICKTIME | string |
Video.WEBM | string |
Video.X_FLV | string |
Video.X_MS_WMV | string |
Video._3GPP | string |
Video._3GPP2 | string |
Vnd | { KML : string = 'application/vnd.google-earth.kml+xml'; MS : { EXCEL : string = 'application/vnd.ms-excel'; EXCEL_2007 : string = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'; POWERPOINT : string = 'application/vnd.ms-powerpoint'; POWERPOINT_2007 : string = 'application/vnd.openxmlformats-officedocument.presentationml.presentation'; WORD : string = 'application/msword'; WORD_2007 : string = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' } ; Od : { GRAPHICS : string = 'application/vnd.oasis.opendocument.graphics'; PRESENTATION : string = 'application/vnd.oasis.opendocument.presentation'; SPERADSHEET : string = 'application/vnd.oasis.opendocument.spreadsheet'; TEXT : string = 'application/vnd.oasis.opendocument.text' } ; XUL : string = 'application/vnd.mozilla.xul+xml' } |
Vnd.KML | string |
Vnd.MS | { EXCEL : string = 'application/vnd.ms-excel'; EXCEL_2007 : string = 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'; POWERPOINT : string = 'application/vnd.ms-powerpoint'; POWERPOINT_2007 : string = 'application/vnd.openxmlformats-officedocument.presentationml.presentation'; WORD : string = 'application/msword'; WORD_2007 : string = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' } |
Vnd.MS.EXCEL | string |
Vnd.MS.EXCEL_2007 | string |
Vnd.MS.POWERPOINT | string |
Vnd.MS.POWERPOINT_2007 | string |
Vnd.MS.WORD | string |
Vnd.MS.WORD_2007 | string |
Vnd.Od | { GRAPHICS : string = 'application/vnd.oasis.opendocument.graphics'; PRESENTATION : string = 'application/vnd.oasis.opendocument.presentation'; SPERADSHEET : string = 'application/vnd.oasis.opendocument.spreadsheet'; TEXT : string = 'application/vnd.oasis.opendocument.text' } |
Vnd.Od.GRAPHICS | string |
Vnd.Od.PRESENTATION | string |
Vnd.Od.SPERADSHEET | string |
Vnd.Od.TEXT | string |
Vnd.XUL | string |
X | { DVI : string = 'application/x-dvi'; FONT_TTF : string = 'application/x-font-ttf'; JAVASCRIPT : string = 'application/x-javascript'; JQUERY_TMPL : string = 'application/x-jquery-tmpl'; LATEX : string = 'application/x-latex'; RAR_COMPRESSED : string = 'application/x-rar-compressed'; SHOCKWAVE_FLASH : string = 'application/x-shockwave-flash'; STUFFIT : string = 'application/x-stuffit'; TAR : string = 'application/x-tar'; WWW_FORM_URLENCODED : string = 'application/x-www-form-urlencoded' } |
X.DVI | string |
X.FONT_TTF | string |
X.JAVASCRIPT | string |
X.JQUERY_TMPL | string |
X.LATEX | string |
X.RAR_COMPRESSED | string |
X.SHOCKWAVE_FLASH | string |
X.STUFFIT | string |
X.TAR | string |
X.WWW_FORM_URLENCODED | string |
Defined in
StatusCode
• Const
StatusCode: Object
Type declaration
Name | Type |
---|---|
ACCEPTED | number |
ALREADY_REPORTED | number |
A_TIMEOUT_OCCURRED | number |
BAD_GATEWAY | number |
BAD_REQUEST | number |
BANDWIDTH_LIMIT_EXCEEDED | number |
CONFLICT | number |
CONNECTION_TIMED_OUT | number |
CONTINUE | number |
CREATED | number |
EARLY_HINTS | number |
EXPECTATION_FAILED | number |
FAILED_DEPENDENCY | number |
FORBIDDEN | number |
FOUND | number |
GATEWAY_TIMEOUT | number |
GONE | number |
HTTP_VERSION_NOT_SUPPORTED | number |
IM_USED | number |
INSUFFICIENT_STORAGE | number |
INTERNAL_SERVER_ERROR | number |
INVALID_SSL_CERTIFICATE | number |
I_AM_A_TEAPOT | number |
LENGTH_REQUIRED | number |
LOCKED | number |
LOOP_DETECTED | number |
METHOD_NOT_ALLOWED | number |
MISDIRECTED_REQUEST | number |
MOVED_PERMANENTLY | number |
MOVED_TEMPORARILY | number |
MULTIPLE_CHOICE | number |
MULTI_STATUS | number |
NETWORK_AUTHENTICATION_REQUIRED | number |
NON_AUTHORITATIVE_INFORMATION | number |
NOT_ACCEPTABLE | number |
NOT_EXTENDED | number |
NOT_FOUND | number |
NOT_IMPLEMENTED | number |
NOT_MODIFIED | number |
NO_CONTENT | number |
OK | number |
ORIGIN_IS_UNREACHABLE | number |
PARTIAL_CONTENT | number |
PAYLOAD_TOO_LARGE | number |
PAYMENT_REQUIRED | number |
PERMANENT_REDIRECT | number |
PRECONDITION_FAILED | number |
PRECONDITION_REQUIRED | number |
PROCESSING | number |
PROXY_AUTHENTICATION_REQUIRED | number |
RANGE_NOT_SATISFIABLE | number |
REQUESTED_HOST_UNAVAILABLE | number |
REQUEST_HEADER_FIELDS_TOO_LARGE | number |
REQUEST_TIMEOUT | number |
RESET_CONTENT | number |
RETRY_WITH | number |
SEE_OTHER | number |
SERVICE_UNAVAILABLE | number |
SSL_HANDSHAKE_FAILED | number |
SWITCHING_PROTOCOL | number |
TEMPORARY_REDIRECT | number |
TOO_MANY_REQUESTS | number |
UNAUTHORIZED | number |
UNAVAILABLE_FOR_LEGAL_REASONS | number |
UNKNOWN_ERROR | number |
UNPROCESSABLE_ENTITY | number |
UNSUPPORTED_MEDIA_TYPE | number |
UPGRADE_REQUIRED | number |
URI_TOO_LONG | number |
USE_PROXY | number |
VARIANT_ALSO_NEGOTIATES | number |
WEB_SERVER_IS_DOWN | number |
Defined in
TrackingStatuses
• Const
TrackingStatuses: Object
Type declaration
Name | Type |
---|---|
DISREGARDING_DNT | string |
DYNAMIC | string |
GATEWAY | string |
NOT_TRACKING | string |
TRACKING | string |
TRACKING_ONLY_IF_CONSENT | string |
TRACKING_WITH_CONSENT | string |
UNDER_CONSTRUCTION | string |
UPDATED | string |