1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/mobile/android/thirdparty/ch/boye/httpclientandroidlib/HttpHeaders.java Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,206 @@ 1.4 +/* 1.5 + * ==================================================================== 1.6 + * Licensed to the Apache Software Foundation (ASF) under one 1.7 + * or more contributor license agreements. See the NOTICE file 1.8 + * distributed with this work for additional information 1.9 + * regarding copyright ownership. The ASF licenses this file 1.10 + * to you under the Apache License, Version 2.0 (the 1.11 + * "License"); you may not use this file except in compliance 1.12 + * with the License. You may obtain a copy of the License at 1.13 + * 1.14 + * http://www.apache.org/licenses/LICENSE-2.0 1.15 + * 1.16 + * Unless required by applicable law or agreed to in writing, 1.17 + * software distributed under the License is distributed on an 1.18 + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 1.19 + * KIND, either express or implied. See the License for the 1.20 + * specific language governing permissions and limitations 1.21 + * under the License. 1.22 + * ==================================================================== 1.23 + * 1.24 + * This software consists of voluntary contributions made by many 1.25 + * individuals on behalf of the Apache Software Foundation. For more 1.26 + * information on the Apache Software Foundation, please see 1.27 + * <http://www.apache.org/>. 1.28 + * 1.29 + */ 1.30 + 1.31 +package ch.boye.httpclientandroidlib; 1.32 + 1.33 +/** 1.34 + * Constants enumerating the HTTP headers. All headers defined in RFC1945 (HTTP/1.0), RFC2616 (HTTP/1.1), and RFC2518 1.35 + * (WebDAV) are listed. 1.36 + * 1.37 + * @since 4.1 1.38 + */ 1.39 +public final class HttpHeaders { 1.40 + 1.41 + private HttpHeaders() { 1.42 + } 1.43 + 1.44 + /** RFC 2616 (HTTP/1.1) Section 14.1 */ 1.45 + public static final String ACCEPT = "Accept"; 1.46 + 1.47 + /** RFC 2616 (HTTP/1.1) Section 14.2 */ 1.48 + public static final String ACCEPT_CHARSET = "Accept-Charset"; 1.49 + 1.50 + /** RFC 2616 (HTTP/1.1) Section 14.3 */ 1.51 + public static final String ACCEPT_ENCODING = "Accept-Encoding"; 1.52 + 1.53 + /** RFC 2616 (HTTP/1.1) Section 14.4 */ 1.54 + public static final String ACCEPT_LANGUAGE = "Accept-Language"; 1.55 + 1.56 + /** RFC 2616 (HTTP/1.1) Section 14.5 */ 1.57 + public static final String ACCEPT_RANGES = "Accept-Ranges"; 1.58 + 1.59 + /** RFC 2616 (HTTP/1.1) Section 14.6 */ 1.60 + public static final String AGE = "Age"; 1.61 + 1.62 + /** RFC 1945 (HTTP/1.0) Section 10.1, RFC 2616 (HTTP/1.1) Section 14.7 */ 1.63 + public static final String ALLOW = "Allow"; 1.64 + 1.65 + /** RFC 1945 (HTTP/1.0) Section 10.2, RFC 2616 (HTTP/1.1) Section 14.8 */ 1.66 + public static final String AUTHORIZATION = "Authorization"; 1.67 + 1.68 + /** RFC 2616 (HTTP/1.1) Section 14.9 */ 1.69 + public static final String CACHE_CONTROL = "Cache-Control"; 1.70 + 1.71 + /** RFC 2616 (HTTP/1.1) Section 14.10 */ 1.72 + public static final String CONNECTION = "Connection"; 1.73 + 1.74 + /** RFC 1945 (HTTP/1.0) Section 10.3, RFC 2616 (HTTP/1.1) Section 14.11 */ 1.75 + public static final String CONTENT_ENCODING = "Content-Encoding"; 1.76 + 1.77 + /** RFC 2616 (HTTP/1.1) Section 14.12 */ 1.78 + public static final String CONTENT_LANGUAGE = "Content-Language"; 1.79 + 1.80 + /** RFC 1945 (HTTP/1.0) Section 10.4, RFC 2616 (HTTP/1.1) Section 14.13 */ 1.81 + public static final String CONTENT_LENGTH = "Content-Length"; 1.82 + 1.83 + /** RFC 2616 (HTTP/1.1) Section 14.14 */ 1.84 + public static final String CONTENT_LOCATION = "Content-Location"; 1.85 + 1.86 + /** RFC 2616 (HTTP/1.1) Section 14.15 */ 1.87 + public static final String CONTENT_MD5 = "Content-MD5"; 1.88 + 1.89 + /** RFC 2616 (HTTP/1.1) Section 14.16 */ 1.90 + public static final String CONTENT_RANGE = "Content-Range"; 1.91 + 1.92 + /** RFC 1945 (HTTP/1.0) Section 10.5, RFC 2616 (HTTP/1.1) Section 14.17 */ 1.93 + public static final String CONTENT_TYPE = "Content-Type"; 1.94 + 1.95 + /** RFC 1945 (HTTP/1.0) Section 10.6, RFC 2616 (HTTP/1.1) Section 14.18 */ 1.96 + public static final String DATE = "Date"; 1.97 + 1.98 + /** RFC 2518 (WevDAV) Section 9.1 */ 1.99 + public static final String DAV = "Dav"; 1.100 + 1.101 + /** RFC 2518 (WevDAV) Section 9.2 */ 1.102 + public static final String DEPTH = "Depth"; 1.103 + 1.104 + /** RFC 2518 (WevDAV) Section 9.3 */ 1.105 + public static final String DESTINATION = "Destination"; 1.106 + 1.107 + /** RFC 2616 (HTTP/1.1) Section 14.19 */ 1.108 + public static final String ETAG = "ETag"; 1.109 + 1.110 + /** RFC 2616 (HTTP/1.1) Section 14.20 */ 1.111 + public static final String EXPECT = "Expect"; 1.112 + 1.113 + /** RFC 1945 (HTTP/1.0) Section 10.7, RFC 2616 (HTTP/1.1) Section 14.21 */ 1.114 + public static final String EXPIRES = "Expires"; 1.115 + 1.116 + /** RFC 1945 (HTTP/1.0) Section 10.8, RFC 2616 (HTTP/1.1) Section 14.22 */ 1.117 + public static final String FROM = "From"; 1.118 + 1.119 + /** RFC 2616 (HTTP/1.1) Section 14.23 */ 1.120 + public static final String HOST = "Host"; 1.121 + 1.122 + /** RFC 2518 (WevDAV) Section 9.4 */ 1.123 + public static final String IF = "If"; 1.124 + 1.125 + /** RFC 2616 (HTTP/1.1) Section 14.24 */ 1.126 + public static final String IF_MATCH = "If-Match"; 1.127 + 1.128 + /** RFC 1945 (HTTP/1.0) Section 10.9, RFC 2616 (HTTP/1.1) Section 14.25 */ 1.129 + public static final String IF_MODIFIED_SINCE = "If-Modified-Since"; 1.130 + 1.131 + /** RFC 2616 (HTTP/1.1) Section 14.26 */ 1.132 + public static final String IF_NONE_MATCH = "If-None-Match"; 1.133 + 1.134 + /** RFC 2616 (HTTP/1.1) Section 14.27 */ 1.135 + public static final String IF_RANGE = "If-Range"; 1.136 + 1.137 + /** RFC 2616 (HTTP/1.1) Section 14.28 */ 1.138 + public static final String IF_UNMODIFIED_SINCE = "If-Unmodified-Since"; 1.139 + 1.140 + /** RFC 1945 (HTTP/1.0) Section 10.10, RFC 2616 (HTTP/1.1) Section 14.29 */ 1.141 + public static final String LAST_MODIFIED = "Last-Modified"; 1.142 + 1.143 + /** RFC 1945 (HTTP/1.0) Section 10.11, RFC 2616 (HTTP/1.1) Section 14.30 */ 1.144 + public static final String LOCATION = "Location"; 1.145 + 1.146 + /** RFC 2518 (WevDAV) Section 9.5 */ 1.147 + public static final String LOCK_TOKEN = "Lock-Token"; 1.148 + 1.149 + /** RFC 2616 (HTTP/1.1) Section 14.31 */ 1.150 + public static final String MAX_FORWARDS = "Max-Forwards"; 1.151 + 1.152 + /** RFC 2518 (WevDAV) Section 9.6 */ 1.153 + public static final String OVERWRITE = "Overwrite"; 1.154 + 1.155 + /** RFC 1945 (HTTP/1.0) Section 10.12, RFC 2616 (HTTP/1.1) Section 14.32 */ 1.156 + public static final String PRAGMA = "Pragma"; 1.157 + 1.158 + /** RFC 2616 (HTTP/1.1) Section 14.33 */ 1.159 + public static final String PROXY_AUTHENTICATE = "Proxy-Authenticate"; 1.160 + 1.161 + /** RFC 2616 (HTTP/1.1) Section 14.34 */ 1.162 + public static final String PROXY_AUTHORIZATION = "Proxy-Authorization"; 1.163 + 1.164 + /** RFC 2616 (HTTP/1.1) Section 14.35 */ 1.165 + public static final String RANGE = "Range"; 1.166 + 1.167 + /** RFC 1945 (HTTP/1.0) Section 10.13, RFC 2616 (HTTP/1.1) Section 14.36 */ 1.168 + public static final String REFERER = "Referer"; 1.169 + 1.170 + /** RFC 2616 (HTTP/1.1) Section 14.37 */ 1.171 + public static final String RETRY_AFTER = "Retry-After"; 1.172 + 1.173 + /** RFC 1945 (HTTP/1.0) Section 10.14, RFC 2616 (HTTP/1.1) Section 14.38 */ 1.174 + public static final String SERVER = "Server"; 1.175 + 1.176 + /** RFC 2518 (WevDAV) Section 9.7 */ 1.177 + public static final String STATUS_URI = "Status-URI"; 1.178 + 1.179 + /** RFC 2616 (HTTP/1.1) Section 14.39 */ 1.180 + public static final String TE = "TE"; 1.181 + 1.182 + /** RFC 2518 (WevDAV) Section 9.8 */ 1.183 + public static final String TIMEOUT = "Timeout"; 1.184 + 1.185 + /** RFC 2616 (HTTP/1.1) Section 14.40 */ 1.186 + public static final String TRAILER = "Trailer"; 1.187 + 1.188 + /** RFC 2616 (HTTP/1.1) Section 14.41 */ 1.189 + public static final String TRANSFER_ENCODING = "Transfer-Encoding"; 1.190 + 1.191 + /** RFC 2616 (HTTP/1.1) Section 14.42 */ 1.192 + public static final String UPGRADE = "Upgrade"; 1.193 + 1.194 + /** RFC 1945 (HTTP/1.0) Section 10.15, RFC 2616 (HTTP/1.1) Section 14.43 */ 1.195 + public static final String USER_AGENT = "User-Agent"; 1.196 + 1.197 + /** RFC 2616 (HTTP/1.1) Section 14.44 */ 1.198 + public static final String VARY = "Vary"; 1.199 + 1.200 + /** RFC 2616 (HTTP/1.1) Section 14.45 */ 1.201 + public static final String VIA = "Via"; 1.202 + 1.203 + /** RFC 2616 (HTTP/1.1) Section 14.46 */ 1.204 + public static final String WARNING = "Warning"; 1.205 + 1.206 + /** RFC 1945 (HTTP/1.0) Section 10.16, RFC 2616 (HTTP/1.1) Section 14.47 */ 1.207 + public static final String WWW_AUTHENTICATE = "WWW-Authenticate"; 1.208 + 1.209 +}