Wed, 31 Dec 2014 07:22:50 +0100
Correct previous dual key logic pending first delivery installment.
1 /*
2 * ====================================================================
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License. You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied. See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 * ====================================================================
20 *
21 * This software consists of voluntary contributions made by many
22 * individuals on behalf of the Apache Software Foundation. For more
23 * information on the Apache Software Foundation, please see
24 * <http://www.apache.org/>.
25 *
26 */
28 package ch.boye.httpclientandroidlib;
30 /**
31 * Constants enumerating the HTTP headers. All headers defined in RFC1945 (HTTP/1.0), RFC2616 (HTTP/1.1), and RFC2518
32 * (WebDAV) are listed.
33 *
34 * @since 4.1
35 */
36 public final class HttpHeaders {
38 private HttpHeaders() {
39 }
41 /** RFC 2616 (HTTP/1.1) Section 14.1 */
42 public static final String ACCEPT = "Accept";
44 /** RFC 2616 (HTTP/1.1) Section 14.2 */
45 public static final String ACCEPT_CHARSET = "Accept-Charset";
47 /** RFC 2616 (HTTP/1.1) Section 14.3 */
48 public static final String ACCEPT_ENCODING = "Accept-Encoding";
50 /** RFC 2616 (HTTP/1.1) Section 14.4 */
51 public static final String ACCEPT_LANGUAGE = "Accept-Language";
53 /** RFC 2616 (HTTP/1.1) Section 14.5 */
54 public static final String ACCEPT_RANGES = "Accept-Ranges";
56 /** RFC 2616 (HTTP/1.1) Section 14.6 */
57 public static final String AGE = "Age";
59 /** RFC 1945 (HTTP/1.0) Section 10.1, RFC 2616 (HTTP/1.1) Section 14.7 */
60 public static final String ALLOW = "Allow";
62 /** RFC 1945 (HTTP/1.0) Section 10.2, RFC 2616 (HTTP/1.1) Section 14.8 */
63 public static final String AUTHORIZATION = "Authorization";
65 /** RFC 2616 (HTTP/1.1) Section 14.9 */
66 public static final String CACHE_CONTROL = "Cache-Control";
68 /** RFC 2616 (HTTP/1.1) Section 14.10 */
69 public static final String CONNECTION = "Connection";
71 /** RFC 1945 (HTTP/1.0) Section 10.3, RFC 2616 (HTTP/1.1) Section 14.11 */
72 public static final String CONTENT_ENCODING = "Content-Encoding";
74 /** RFC 2616 (HTTP/1.1) Section 14.12 */
75 public static final String CONTENT_LANGUAGE = "Content-Language";
77 /** RFC 1945 (HTTP/1.0) Section 10.4, RFC 2616 (HTTP/1.1) Section 14.13 */
78 public static final String CONTENT_LENGTH = "Content-Length";
80 /** RFC 2616 (HTTP/1.1) Section 14.14 */
81 public static final String CONTENT_LOCATION = "Content-Location";
83 /** RFC 2616 (HTTP/1.1) Section 14.15 */
84 public static final String CONTENT_MD5 = "Content-MD5";
86 /** RFC 2616 (HTTP/1.1) Section 14.16 */
87 public static final String CONTENT_RANGE = "Content-Range";
89 /** RFC 1945 (HTTP/1.0) Section 10.5, RFC 2616 (HTTP/1.1) Section 14.17 */
90 public static final String CONTENT_TYPE = "Content-Type";
92 /** RFC 1945 (HTTP/1.0) Section 10.6, RFC 2616 (HTTP/1.1) Section 14.18 */
93 public static final String DATE = "Date";
95 /** RFC 2518 (WevDAV) Section 9.1 */
96 public static final String DAV = "Dav";
98 /** RFC 2518 (WevDAV) Section 9.2 */
99 public static final String DEPTH = "Depth";
101 /** RFC 2518 (WevDAV) Section 9.3 */
102 public static final String DESTINATION = "Destination";
104 /** RFC 2616 (HTTP/1.1) Section 14.19 */
105 public static final String ETAG = "ETag";
107 /** RFC 2616 (HTTP/1.1) Section 14.20 */
108 public static final String EXPECT = "Expect";
110 /** RFC 1945 (HTTP/1.0) Section 10.7, RFC 2616 (HTTP/1.1) Section 14.21 */
111 public static final String EXPIRES = "Expires";
113 /** RFC 1945 (HTTP/1.0) Section 10.8, RFC 2616 (HTTP/1.1) Section 14.22 */
114 public static final String FROM = "From";
116 /** RFC 2616 (HTTP/1.1) Section 14.23 */
117 public static final String HOST = "Host";
119 /** RFC 2518 (WevDAV) Section 9.4 */
120 public static final String IF = "If";
122 /** RFC 2616 (HTTP/1.1) Section 14.24 */
123 public static final String IF_MATCH = "If-Match";
125 /** RFC 1945 (HTTP/1.0) Section 10.9, RFC 2616 (HTTP/1.1) Section 14.25 */
126 public static final String IF_MODIFIED_SINCE = "If-Modified-Since";
128 /** RFC 2616 (HTTP/1.1) Section 14.26 */
129 public static final String IF_NONE_MATCH = "If-None-Match";
131 /** RFC 2616 (HTTP/1.1) Section 14.27 */
132 public static final String IF_RANGE = "If-Range";
134 /** RFC 2616 (HTTP/1.1) Section 14.28 */
135 public static final String IF_UNMODIFIED_SINCE = "If-Unmodified-Since";
137 /** RFC 1945 (HTTP/1.0) Section 10.10, RFC 2616 (HTTP/1.1) Section 14.29 */
138 public static final String LAST_MODIFIED = "Last-Modified";
140 /** RFC 1945 (HTTP/1.0) Section 10.11, RFC 2616 (HTTP/1.1) Section 14.30 */
141 public static final String LOCATION = "Location";
143 /** RFC 2518 (WevDAV) Section 9.5 */
144 public static final String LOCK_TOKEN = "Lock-Token";
146 /** RFC 2616 (HTTP/1.1) Section 14.31 */
147 public static final String MAX_FORWARDS = "Max-Forwards";
149 /** RFC 2518 (WevDAV) Section 9.6 */
150 public static final String OVERWRITE = "Overwrite";
152 /** RFC 1945 (HTTP/1.0) Section 10.12, RFC 2616 (HTTP/1.1) Section 14.32 */
153 public static final String PRAGMA = "Pragma";
155 /** RFC 2616 (HTTP/1.1) Section 14.33 */
156 public static final String PROXY_AUTHENTICATE = "Proxy-Authenticate";
158 /** RFC 2616 (HTTP/1.1) Section 14.34 */
159 public static final String PROXY_AUTHORIZATION = "Proxy-Authorization";
161 /** RFC 2616 (HTTP/1.1) Section 14.35 */
162 public static final String RANGE = "Range";
164 /** RFC 1945 (HTTP/1.0) Section 10.13, RFC 2616 (HTTP/1.1) Section 14.36 */
165 public static final String REFERER = "Referer";
167 /** RFC 2616 (HTTP/1.1) Section 14.37 */
168 public static final String RETRY_AFTER = "Retry-After";
170 /** RFC 1945 (HTTP/1.0) Section 10.14, RFC 2616 (HTTP/1.1) Section 14.38 */
171 public static final String SERVER = "Server";
173 /** RFC 2518 (WevDAV) Section 9.7 */
174 public static final String STATUS_URI = "Status-URI";
176 /** RFC 2616 (HTTP/1.1) Section 14.39 */
177 public static final String TE = "TE";
179 /** RFC 2518 (WevDAV) Section 9.8 */
180 public static final String TIMEOUT = "Timeout";
182 /** RFC 2616 (HTTP/1.1) Section 14.40 */
183 public static final String TRAILER = "Trailer";
185 /** RFC 2616 (HTTP/1.1) Section 14.41 */
186 public static final String TRANSFER_ENCODING = "Transfer-Encoding";
188 /** RFC 2616 (HTTP/1.1) Section 14.42 */
189 public static final String UPGRADE = "Upgrade";
191 /** RFC 1945 (HTTP/1.0) Section 10.15, RFC 2616 (HTTP/1.1) Section 14.43 */
192 public static final String USER_AGENT = "User-Agent";
194 /** RFC 2616 (HTTP/1.1) Section 14.44 */
195 public static final String VARY = "Vary";
197 /** RFC 2616 (HTTP/1.1) Section 14.45 */
198 public static final String VIA = "Via";
200 /** RFC 2616 (HTTP/1.1) Section 14.46 */
201 public static final String WARNING = "Warning";
203 /** RFC 1945 (HTTP/1.0) Section 10.16, RFC 2616 (HTTP/1.1) Section 14.47 */
204 public static final String WWW_AUTHENTICATE = "WWW-Authenticate";
206 }