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 */ 27 28 package ch.boye.httpclientandroidlib; 29 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 { 37 HttpHeaders()38 private HttpHeaders() { 39 } 40 41 /** RFC 2616 (HTTP/1.1) Section 14.1 */ 42 public static final String ACCEPT = "Accept"; 43 44 /** RFC 2616 (HTTP/1.1) Section 14.2 */ 45 public static final String ACCEPT_CHARSET = "Accept-Charset"; 46 47 /** RFC 2616 (HTTP/1.1) Section 14.3 */ 48 public static final String ACCEPT_ENCODING = "Accept-Encoding"; 49 50 /** RFC 2616 (HTTP/1.1) Section 14.4 */ 51 public static final String ACCEPT_LANGUAGE = "Accept-Language"; 52 53 /** RFC 2616 (HTTP/1.1) Section 14.5 */ 54 public static final String ACCEPT_RANGES = "Accept-Ranges"; 55 56 /** RFC 2616 (HTTP/1.1) Section 14.6 */ 57 public static final String AGE = "Age"; 58 59 /** RFC 1945 (HTTP/1.0) Section 10.1, RFC 2616 (HTTP/1.1) Section 14.7 */ 60 public static final String ALLOW = "Allow"; 61 62 /** RFC 1945 (HTTP/1.0) Section 10.2, RFC 2616 (HTTP/1.1) Section 14.8 */ 63 public static final String AUTHORIZATION = "Authorization"; 64 65 /** RFC 2616 (HTTP/1.1) Section 14.9 */ 66 public static final String CACHE_CONTROL = "Cache-Control"; 67 68 /** RFC 2616 (HTTP/1.1) Section 14.10 */ 69 public static final String CONNECTION = "Connection"; 70 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"; 73 74 /** RFC 2616 (HTTP/1.1) Section 14.12 */ 75 public static final String CONTENT_LANGUAGE = "Content-Language"; 76 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"; 79 80 /** RFC 2616 (HTTP/1.1) Section 14.14 */ 81 public static final String CONTENT_LOCATION = "Content-Location"; 82 83 /** RFC 2616 (HTTP/1.1) Section 14.15 */ 84 public static final String CONTENT_MD5 = "Content-MD5"; 85 86 /** RFC 2616 (HTTP/1.1) Section 14.16 */ 87 public static final String CONTENT_RANGE = "Content-Range"; 88 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"; 91 92 /** RFC 1945 (HTTP/1.0) Section 10.6, RFC 2616 (HTTP/1.1) Section 14.18 */ 93 public static final String DATE = "Date"; 94 95 /** RFC 2518 (WevDAV) Section 9.1 */ 96 public static final String DAV = "Dav"; 97 98 /** RFC 2518 (WevDAV) Section 9.2 */ 99 public static final String DEPTH = "Depth"; 100 101 /** RFC 2518 (WevDAV) Section 9.3 */ 102 public static final String DESTINATION = "Destination"; 103 104 /** RFC 2616 (HTTP/1.1) Section 14.19 */ 105 public static final String ETAG = "ETag"; 106 107 /** RFC 2616 (HTTP/1.1) Section 14.20 */ 108 public static final String EXPECT = "Expect"; 109 110 /** RFC 1945 (HTTP/1.0) Section 10.7, RFC 2616 (HTTP/1.1) Section 14.21 */ 111 public static final String EXPIRES = "Expires"; 112 113 /** RFC 1945 (HTTP/1.0) Section 10.8, RFC 2616 (HTTP/1.1) Section 14.22 */ 114 public static final String FROM = "From"; 115 116 /** RFC 2616 (HTTP/1.1) Section 14.23 */ 117 public static final String HOST = "Host"; 118 119 /** RFC 2518 (WevDAV) Section 9.4 */ 120 public static final String IF = "If"; 121 122 /** RFC 2616 (HTTP/1.1) Section 14.24 */ 123 public static final String IF_MATCH = "If-Match"; 124 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"; 127 128 /** RFC 2616 (HTTP/1.1) Section 14.26 */ 129 public static final String IF_NONE_MATCH = "If-None-Match"; 130 131 /** RFC 2616 (HTTP/1.1) Section 14.27 */ 132 public static final String IF_RANGE = "If-Range"; 133 134 /** RFC 2616 (HTTP/1.1) Section 14.28 */ 135 public static final String IF_UNMODIFIED_SINCE = "If-Unmodified-Since"; 136 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"; 139 140 /** RFC 1945 (HTTP/1.0) Section 10.11, RFC 2616 (HTTP/1.1) Section 14.30 */ 141 public static final String LOCATION = "Location"; 142 143 /** RFC 2518 (WevDAV) Section 9.5 */ 144 public static final String LOCK_TOKEN = "Lock-Token"; 145 146 /** RFC 2616 (HTTP/1.1) Section 14.31 */ 147 public static final String MAX_FORWARDS = "Max-Forwards"; 148 149 /** RFC 2518 (WevDAV) Section 9.6 */ 150 public static final String OVERWRITE = "Overwrite"; 151 152 /** RFC 1945 (HTTP/1.0) Section 10.12, RFC 2616 (HTTP/1.1) Section 14.32 */ 153 public static final String PRAGMA = "Pragma"; 154 155 /** RFC 2616 (HTTP/1.1) Section 14.33 */ 156 public static final String PROXY_AUTHENTICATE = "Proxy-Authenticate"; 157 158 /** RFC 2616 (HTTP/1.1) Section 14.34 */ 159 public static final String PROXY_AUTHORIZATION = "Proxy-Authorization"; 160 161 /** RFC 2616 (HTTP/1.1) Section 14.35 */ 162 public static final String RANGE = "Range"; 163 164 /** RFC 1945 (HTTP/1.0) Section 10.13, RFC 2616 (HTTP/1.1) Section 14.36 */ 165 public static final String REFERER = "Referer"; 166 167 /** RFC 2616 (HTTP/1.1) Section 14.37 */ 168 public static final String RETRY_AFTER = "Retry-After"; 169 170 /** RFC 1945 (HTTP/1.0) Section 10.14, RFC 2616 (HTTP/1.1) Section 14.38 */ 171 public static final String SERVER = "Server"; 172 173 /** RFC 2518 (WevDAV) Section 9.7 */ 174 public static final String STATUS_URI = "Status-URI"; 175 176 /** RFC 2616 (HTTP/1.1) Section 14.39 */ 177 public static final String TE = "TE"; 178 179 /** RFC 2518 (WevDAV) Section 9.8 */ 180 public static final String TIMEOUT = "Timeout"; 181 182 /** RFC 2616 (HTTP/1.1) Section 14.40 */ 183 public static final String TRAILER = "Trailer"; 184 185 /** RFC 2616 (HTTP/1.1) Section 14.41 */ 186 public static final String TRANSFER_ENCODING = "Transfer-Encoding"; 187 188 /** RFC 2616 (HTTP/1.1) Section 14.42 */ 189 public static final String UPGRADE = "Upgrade"; 190 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"; 193 194 /** RFC 2616 (HTTP/1.1) Section 14.44 */ 195 public static final String VARY = "Vary"; 196 197 /** RFC 2616 (HTTP/1.1) Section 14.45 */ 198 public static final String VIA = "Via"; 199 200 /** RFC 2616 (HTTP/1.1) Section 14.46 */ 201 public static final String WARNING = "Warning"; 202 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"; 205 206 } 207