michael@0: /* michael@0: * ==================================================================== michael@0: * Licensed to the Apache Software Foundation (ASF) under one michael@0: * or more contributor license agreements. See the NOTICE file michael@0: * distributed with this work for additional information michael@0: * regarding copyright ownership. The ASF licenses this file michael@0: * to you under the Apache License, Version 2.0 (the michael@0: * "License"); you may not use this file except in compliance michael@0: * with the License. You may obtain a copy of the License at michael@0: * michael@0: * http://www.apache.org/licenses/LICENSE-2.0 michael@0: * michael@0: * Unless required by applicable law or agreed to in writing, michael@0: * software distributed under the License is distributed on an michael@0: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY michael@0: * KIND, either express or implied. See the License for the michael@0: * specific language governing permissions and limitations michael@0: * under the License. michael@0: * ==================================================================== michael@0: * michael@0: * This software consists of voluntary contributions made by many michael@0: * individuals on behalf of the Apache Software Foundation. For more michael@0: * information on the Apache Software Foundation, please see michael@0: * . michael@0: * michael@0: */ michael@0: michael@0: package ch.boye.httpclientandroidlib; michael@0: michael@0: /** michael@0: * Constants enumerating the HTTP headers. All headers defined in RFC1945 (HTTP/1.0), RFC2616 (HTTP/1.1), and RFC2518 michael@0: * (WebDAV) are listed. michael@0: * michael@0: * @since 4.1 michael@0: */ michael@0: public final class HttpHeaders { michael@0: michael@0: private HttpHeaders() { michael@0: } michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.1 */ michael@0: public static final String ACCEPT = "Accept"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.2 */ michael@0: public static final String ACCEPT_CHARSET = "Accept-Charset"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.3 */ michael@0: public static final String ACCEPT_ENCODING = "Accept-Encoding"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.4 */ michael@0: public static final String ACCEPT_LANGUAGE = "Accept-Language"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.5 */ michael@0: public static final String ACCEPT_RANGES = "Accept-Ranges"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.6 */ michael@0: public static final String AGE = "Age"; michael@0: michael@0: /** RFC 1945 (HTTP/1.0) Section 10.1, RFC 2616 (HTTP/1.1) Section 14.7 */ michael@0: public static final String ALLOW = "Allow"; michael@0: michael@0: /** RFC 1945 (HTTP/1.0) Section 10.2, RFC 2616 (HTTP/1.1) Section 14.8 */ michael@0: public static final String AUTHORIZATION = "Authorization"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.9 */ michael@0: public static final String CACHE_CONTROL = "Cache-Control"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.10 */ michael@0: public static final String CONNECTION = "Connection"; michael@0: michael@0: /** RFC 1945 (HTTP/1.0) Section 10.3, RFC 2616 (HTTP/1.1) Section 14.11 */ michael@0: public static final String CONTENT_ENCODING = "Content-Encoding"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.12 */ michael@0: public static final String CONTENT_LANGUAGE = "Content-Language"; michael@0: michael@0: /** RFC 1945 (HTTP/1.0) Section 10.4, RFC 2616 (HTTP/1.1) Section 14.13 */ michael@0: public static final String CONTENT_LENGTH = "Content-Length"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.14 */ michael@0: public static final String CONTENT_LOCATION = "Content-Location"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.15 */ michael@0: public static final String CONTENT_MD5 = "Content-MD5"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.16 */ michael@0: public static final String CONTENT_RANGE = "Content-Range"; michael@0: michael@0: /** RFC 1945 (HTTP/1.0) Section 10.5, RFC 2616 (HTTP/1.1) Section 14.17 */ michael@0: public static final String CONTENT_TYPE = "Content-Type"; michael@0: michael@0: /** RFC 1945 (HTTP/1.0) Section 10.6, RFC 2616 (HTTP/1.1) Section 14.18 */ michael@0: public static final String DATE = "Date"; michael@0: michael@0: /** RFC 2518 (WevDAV) Section 9.1 */ michael@0: public static final String DAV = "Dav"; michael@0: michael@0: /** RFC 2518 (WevDAV) Section 9.2 */ michael@0: public static final String DEPTH = "Depth"; michael@0: michael@0: /** RFC 2518 (WevDAV) Section 9.3 */ michael@0: public static final String DESTINATION = "Destination"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.19 */ michael@0: public static final String ETAG = "ETag"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.20 */ michael@0: public static final String EXPECT = "Expect"; michael@0: michael@0: /** RFC 1945 (HTTP/1.0) Section 10.7, RFC 2616 (HTTP/1.1) Section 14.21 */ michael@0: public static final String EXPIRES = "Expires"; michael@0: michael@0: /** RFC 1945 (HTTP/1.0) Section 10.8, RFC 2616 (HTTP/1.1) Section 14.22 */ michael@0: public static final String FROM = "From"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.23 */ michael@0: public static final String HOST = "Host"; michael@0: michael@0: /** RFC 2518 (WevDAV) Section 9.4 */ michael@0: public static final String IF = "If"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.24 */ michael@0: public static final String IF_MATCH = "If-Match"; michael@0: michael@0: /** RFC 1945 (HTTP/1.0) Section 10.9, RFC 2616 (HTTP/1.1) Section 14.25 */ michael@0: public static final String IF_MODIFIED_SINCE = "If-Modified-Since"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.26 */ michael@0: public static final String IF_NONE_MATCH = "If-None-Match"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.27 */ michael@0: public static final String IF_RANGE = "If-Range"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.28 */ michael@0: public static final String IF_UNMODIFIED_SINCE = "If-Unmodified-Since"; michael@0: michael@0: /** RFC 1945 (HTTP/1.0) Section 10.10, RFC 2616 (HTTP/1.1) Section 14.29 */ michael@0: public static final String LAST_MODIFIED = "Last-Modified"; michael@0: michael@0: /** RFC 1945 (HTTP/1.0) Section 10.11, RFC 2616 (HTTP/1.1) Section 14.30 */ michael@0: public static final String LOCATION = "Location"; michael@0: michael@0: /** RFC 2518 (WevDAV) Section 9.5 */ michael@0: public static final String LOCK_TOKEN = "Lock-Token"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.31 */ michael@0: public static final String MAX_FORWARDS = "Max-Forwards"; michael@0: michael@0: /** RFC 2518 (WevDAV) Section 9.6 */ michael@0: public static final String OVERWRITE = "Overwrite"; michael@0: michael@0: /** RFC 1945 (HTTP/1.0) Section 10.12, RFC 2616 (HTTP/1.1) Section 14.32 */ michael@0: public static final String PRAGMA = "Pragma"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.33 */ michael@0: public static final String PROXY_AUTHENTICATE = "Proxy-Authenticate"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.34 */ michael@0: public static final String PROXY_AUTHORIZATION = "Proxy-Authorization"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.35 */ michael@0: public static final String RANGE = "Range"; michael@0: michael@0: /** RFC 1945 (HTTP/1.0) Section 10.13, RFC 2616 (HTTP/1.1) Section 14.36 */ michael@0: public static final String REFERER = "Referer"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.37 */ michael@0: public static final String RETRY_AFTER = "Retry-After"; michael@0: michael@0: /** RFC 1945 (HTTP/1.0) Section 10.14, RFC 2616 (HTTP/1.1) Section 14.38 */ michael@0: public static final String SERVER = "Server"; michael@0: michael@0: /** RFC 2518 (WevDAV) Section 9.7 */ michael@0: public static final String STATUS_URI = "Status-URI"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.39 */ michael@0: public static final String TE = "TE"; michael@0: michael@0: /** RFC 2518 (WevDAV) Section 9.8 */ michael@0: public static final String TIMEOUT = "Timeout"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.40 */ michael@0: public static final String TRAILER = "Trailer"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.41 */ michael@0: public static final String TRANSFER_ENCODING = "Transfer-Encoding"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.42 */ michael@0: public static final String UPGRADE = "Upgrade"; michael@0: michael@0: /** RFC 1945 (HTTP/1.0) Section 10.15, RFC 2616 (HTTP/1.1) Section 14.43 */ michael@0: public static final String USER_AGENT = "User-Agent"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.44 */ michael@0: public static final String VARY = "Vary"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.45 */ michael@0: public static final String VIA = "Via"; michael@0: michael@0: /** RFC 2616 (HTTP/1.1) Section 14.46 */ michael@0: public static final String WARNING = "Warning"; michael@0: michael@0: /** RFC 1945 (HTTP/1.0) Section 10.16, RFC 2616 (HTTP/1.1) Section 14.47 */ michael@0: public static final String WWW_AUTHENTICATE = "WWW-Authenticate"; michael@0: michael@0: }