1: <?php
2: /**
3: * PHP OpenCloud library.
4: *
5: * @copyright 2013 Rackspace Hosting, Inc. See LICENSE for information.
6: * @license https://www.apache.org/licenses/LICENSE-2.0
7: * @author Jamie Hannaford <jamie.hannaford@rackspace.com>
8: */
9:
10: namespace OpenCloud\Common\Constants;
11:
12: /**
13: * Standard Header Field names as defined in RFC2616.
14: *
15: * @link http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
16: * @package OpenCloud\Common\Constants
17: */
18: class Header
19: {
20: const ACCEPT = 'Accept';
21: const ACCEPT_CHARSET = 'Accept-Charset';
22: const ACCEPT_ENCODING = 'Accept-Encoding';
23: const ACCEPT_LANGUAGE = 'Accept-Language';
24: const ACCEPT_RANGES = 'Accept-Ranges';
25: const AGE = 'Age';
26: const ALLOW = 'Allow';
27: const AUTHORIZATION = 'Authorization';
28: const CACHE_CONTROL = 'Cache-Control';
29: const CONNECTION = 'Connection';
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_RANGE = 'Content-Range';
36: const CONTENT_TYPE = 'Content-Type';
37: const DATE = 'Date';
38: const ETAG = 'ETag';
39: const EXPECT = 'Expect';
40: const EXPIRES = 'Expires';
41: const FROM = 'From';
42: const HOST = 'Host';
43: const IF_MATCH = 'If-Match';
44: const IF_MODIFIED_SINCE = 'If-Modified-Since';
45: const IF_NONE_MATCH = 'If-None-Match';
46: const IF_RANGE = 'If-Range';
47: const IF_UNMODIFIED_SINCE = 'If-Unmodified-Since';
48: const LAST_MODIFIED = 'Last-Modified';
49: const LOCATION = 'Location';
50: const MAX_FORWARDS = 'Max-Forwards';
51: const PRAGMA = 'Pragma';
52: const PROXY_AUTHENTICATION = 'Proxy-Authenticate';
53: const PROXY_AUTHORIZATION = 'Proxy-Authorization';
54: const RANGE = 'Range';
55: const REFERER = 'Referer';
56: const RETRY_AFTER = 'Retry-After';
57: const SERVER = 'Server';
58: const TE = 'TE';
59: const TRAILER = 'Trailer';
60: const TRANSFER_ENCODING = 'Transfer-Encoding';
61: const UPGRADE = 'Upgrade';
62: const USER_AGENT = 'User-Agent';
63: const VARY = 'Vary';
64: const VIA = 'Via';
65: }