|
| 1 | +<?php |
| 2 | + |
| 3 | +/** |
| 4 | + * This file is part of the Koriym.HttpConstants. |
| 5 | + * |
| 6 | + * @license http://opensource.org/licenses/MIT MIT |
| 7 | + */ |
| 8 | +namespace Koriym\HttpConstants; |
| 9 | + |
| 10 | +/** |
| 11 | + * HTTP response header field names. |
| 12 | + * |
| 13 | + * @see https://www.ietf.org/rfc/rfc2109.txt |
| 14 | + * @see https://www.ietf.org/rfc/rfc2183.txt |
| 15 | + * @see https://www.ietf.org/rfc/rfc2616.txt |
| 16 | + * @see https://www.ietf.org/rfc/rfc2965.txt |
| 17 | + * @see https://www.ietf.org/rfc/rfc5998.txt |
| 18 | + */ |
| 19 | +final class ResponseHeaders |
| 20 | +{ |
| 21 | + // Standard (RFC) Response Fields |
| 22 | + const ACCESS_CONTROL_ALLOW_ORIGIN = 'Access-Control-Allow-Origin'; |
| 23 | + const ACCEPT_PATCH = 'Accept-Patch'; |
| 24 | + const ACCEPT_RANGES = 'Accept-Ranges'; |
| 25 | + const AGE = 'Age'; |
| 26 | + const ALLOW = 'Allow'; |
| 27 | + const CACHE_CONTROL = 'Cache-Control'; |
| 28 | + const CONNECTION = 'Connection'; |
| 29 | + const CONTENT_DISPOSITION = 'Content-Disposition'; |
| 30 | + const CONTENT_ENCODING = 'Content-Encoding'; |
| 31 | + const CONTENT_LANGUAGE = 'Content-Language'; |
| 32 | + const CONTENT_LENGTH = 'Content-Length'; |
| 33 | + const CONTENT_LOCATION = 'Content-Location'; |
| 34 | + const CONTENT_MD5 = 'Content-MD5'; |
| 35 | + const CONTENT_TYPE = 'Content-Type'; |
| 36 | + const DATE = 'Date'; |
| 37 | + const ETAG = 'ETag'; |
| 38 | + const EXPIRES = 'Expires'; |
| 39 | + const LAST_MODIFIED = 'Last-Modified'; |
| 40 | + const P3P = 'P3P'; |
| 41 | + const PROXY_AUTHENTICATE = 'Proxy-Authenticate'; |
| 42 | + const PUBLIC_KEY_PINS = 'Public-Key-Pins'; |
| 43 | + const REFRESH = 'Refresh'; |
| 44 | + const RETRY_AFTER = 'Retry-After'; |
| 45 | + const SERVER = 'Server'; |
| 46 | + const SET_COOKIE = 'Set-Cookie'; |
| 47 | + const STATUS = 'Status'; |
| 48 | + const STRICT_TRANSPORT_SECURITY = 'Strict-Transport-Security'; |
| 49 | + const TRAILER = 'Trailer'; |
| 50 | + const TRANSFER_ENCODING = 'Transfer-Encoding'; |
| 51 | + const UPGRADE = 'Upgrade'; |
| 52 | + const VARY = 'Vary'; |
| 53 | + const WARNING = 'Warning'; |
| 54 | + const WWW_AUTHENTICATE = 'WWW-Authenticate'; |
| 55 | + // Common Non-Standard Request Fields |
| 56 | + const CONTENT_SECURITY_POLICY = 'Content-Security-Policy'; |
| 57 | + const X_XSS_PROTECTION = 'X-XSS-Protection'; |
| 58 | + const X_CONTENT_TYPE_OPTIONS = 'X-Content-Type-Options'; |
| 59 | + const X_POWERED_BY = 'X-Powered-By'; |
| 60 | + const X_UA_COMPATIBLE = 'X-UA-Compatible'; |
| 61 | + const X_CONTENT_DURATION = 'X-Content-Duration'; |
| 62 | +} |
0 commit comments