UNPKG

http-directives

Version:

A TypeScript-friendly package that provides strongly-typed HTTP constants

123 lines (121 loc) 6.29 kB
declare class Headers { static readonly A_IM = "A-IM"; static readonly ACCEPT = "Accept"; static readonly ACCEPT_CH = "Accept-CH"; static readonly ACCEPT_CH_LIFETIME = "Accept-CH-Lifetime"; static readonly ACCEPT_CHARSET = "Accept-Charset"; static readonly ACCEPT_DATETIME = "Accept-Datetime"; static readonly ACCEPT_ENCODING = "Accept-Encoding"; static readonly ACCEPT_LANGUAGE = "Accept-Language"; static readonly ACCEPT_PATCH = "Accept-Patch"; static readonly ACCEPT_RANGES = "Accept-Ranges"; static readonly ACCESS_CONTROL_ALLOW_CREDENTIALS = "Access-Control-Allow-Credentials"; static readonly ACCESS_CONTROL_ALLOW_HEADERS = "Access-Control-Allow-Headers"; static readonly ACCESS_CONTROL_ALLOW_METHODS = "Access-Control-Allow-Methods"; static readonly ACCESS_CONTROL_ALLOW_ORIGIN = "Access-Control-Allow-Origin"; static readonly ACCESS_CONTROL_EXPOSE_HEADERS = "Access-Control-Expose-Headers"; static readonly ACCESS_CONTROL_MAX_AGE = "Access-Control-Max-Age"; static readonly ACCESS_CONTROL_REQUEST_HEADERS = "Access-Control-Request-Headers"; static readonly ACCESS_CONTROL_REQUEST_METHOD = "Access-Control-Request-Method"; static readonly AGE = "Age"; static readonly ALLOW = "Allow"; static readonly ALT_SVC = "Alt-Svc"; static readonly AUTHORIZATION = "Authorization"; static readonly CACHE_CONTROL = "Cache-Control"; static readonly CONNECTION = "Connection"; static readonly CONTENT_DISPOSITION = "Content-Disposition"; static readonly CONTENT_DPR = "Content-DPR"; static readonly CONTENT_ENCODING = "Content-Encoding"; static readonly CONTENT_LANGUAGE = "Content-Language"; static readonly CONTENT_LENGTH = "Content-Length"; static readonly CONTENT_LOCATION = "Content-Location"; static readonly CONTENT_MD5 = "Content-MD5"; static readonly CONTENT_RANGE = "Content-Range"; static readonly CONTENT_SECURITY_POLICY = "Content-Security-Policy"; static readonly CONTENT_SECURITY_POLICY_REPORT_ONLY = "Content-Security-Policy-Report-Only"; static readonly CONTENT_TYPE = "Content-Type"; static readonly COOKIE = "Cookie"; static readonly DATE = "Date"; static readonly DERIVED_FROM = "Derived-From"; static readonly DNT = "DNT"; static readonly DOWNLINK = "Downlink"; static readonly DPR = "DPR"; static readonly EARLY_DATA = "Early-Data"; static readonly ETAG = "ETag"; static readonly EXPECT = "Expect"; static readonly EXPECT_CT = "Expect-CT"; static readonly EXPIRES = "Expires"; static readonly FORWARDED = "Forwarded"; static readonly FROM = "From"; static readonly HOST = "Host"; static readonly IF_MATCH = "If-Match"; static readonly IF_MODIFIED_SINCE = "If-Modified-Since"; static readonly IF_NONE_MATCH = "If-None-Match"; static readonly IF_RANGE = "If-Range"; static readonly IF_UNMODIFIED_SINCE = "If-Unmodified-Since"; static readonly IM = "IM"; static readonly KEEP_ALIVE = "Keep-Alive"; static readonly LAST_EVENT_ID = "Last-Event-ID"; static readonly LAST_MODIFIED = "Last-Modified"; static readonly LINK = "Link"; static readonly LOCATION = "Location"; static readonly MAX_FORWARDS = "Max-Forwards"; static readonly MIME_VERSION = "MIME-Version"; static readonly ORIGIN = "Origin"; /** @deprecated */ static readonly P3P = "P3P"; static readonly PRAGMA = "Pragma"; static readonly PROXY_AUTHENTICATE = "Proxy-Authenticate"; static readonly PROXY_AUTHORIZATION = "Proxy-Authorization"; static readonly RANGE = "Range"; static readonly REFERER = "Referer"; static readonly REFERRER_POLICY = "Referrer-Policy"; static readonly REFRESH = "Refresh"; static readonly RETRY_AFTER = "Retry-After"; static readonly SAVE_DATA = "Save-Data"; static readonly SEC_WEBSOCKET_ACCEPT = "Sec-WebSocket-Accept"; static readonly SEC_WEBSOCKET_EXTENSIONS = "Sec-WebSocket-Extensions"; static readonly SEC_WEBSOCKET_KEY = "Sec-WebSocket-Key"; static readonly SEC_WEBSOCKET_PROTOCOL = "Sec-WebSocket-Protocol"; static readonly SEC_WEBSOCKET_VERSION = "Sec-WebSocket-Version"; static readonly SERVER = "Server"; static readonly SERVER_TIMING = "Server-Timing"; static readonly SET_COOKIE = "Set-Cookie"; static readonly STRICT_TRANSPORT_SECURITY = "Strict-Transport-Security"; static readonly TE = "TE"; static readonly TIMING_ALLOW_ORIGIN = "Timing-Allow-Origin"; static readonly TK = "Tk"; static readonly TRAILER = "Trailer"; static readonly TRANSFER_ENCODING = "Transfer-Encoding"; static readonly UPGRADE = "Upgrade"; static readonly UPGRADE_INSECURE_REQUESTS = "Upgrade-Insecure-Requests"; static readonly USER_AGENT = "User-Agent"; static readonly VARY = "Vary"; static readonly VIA = "Via"; static readonly WARNING = "Warning"; static readonly WWW_AUTHENTICATE = "WWW-Authenticate"; /** @deprecated */ static readonly X_CONTENT_SECURITY_POLICY = "X-Content-Security-Policy"; static readonly X_CONTENT_TYPE_OPTIONS = "X-Content-Type-Options"; static readonly X_CORRELATION_ID = "X-Correlation-ID"; static readonly X_CSRF_TOKEN = "X-Csrf-Token"; static readonly X_DNS_PREFETCH_CONTROL = "X-DNS-Prefetch-Control"; static readonly X_DOWNLOAD_OPTIONS = "X-Download-Options"; static readonly X_FORWARDED_FOR = "X-Forwarded-For"; static readonly X_FORWARDED_HOST = "X-Forwarded-Host"; static readonly X_FORWARDED_PROTO = "X-Forwarded-Proto"; static readonly X_FRAME_OPTIONS = "X-Frame-Options"; static readonly X_HTTP_METHOD_OVERRIDE = "X-Http-Method-Override"; static readonly X_PERMITTED_CROSS_DOMAIN_POLICIES = "X-Permitted-Cross-Domain-Policies"; static readonly X_POWERED_BY = "X-Powered-By"; static readonly X_REQUEST_ID = "X-Request-ID"; static readonly X_REQUESTED_WITH = "X-Requested-With"; static readonly X_ROBOTS_TAG = "X-Robots-Tag"; static readonly X_UA_COMPATIBLE = "X-UA-Compatible"; static readonly X_WAP_PROFILE = "X-Wap-Profile"; /** @deprecated */ static readonly X_WEBKIT_CSP = "X-WebKit-CSP"; /** @deprecated */ static readonly X_XSS_PROTECTION = "X-XSS-Protection"; } export { Headers };