001/* 002 * ==================================================================== 003 * Licensed to the Apache Software Foundation (ASF) under one 004 * or more contributor license agreements. See the NOTICE file 005 * distributed with this work for additional information 006 * regarding copyright ownership. The ASF licenses this file 007 * to you under the Apache License, Version 2.0 (the 008 * "License"); you may not use this file except in compliance 009 * with the License. You may obtain a copy of the License at 010 * 011 * http://www.apache.org/licenses/LICENSE-2.0 012 * 013 * Unless required by applicable law or agreed to in writing, 014 * software distributed under the License is distributed on an 015 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 016 * KIND, either express or implied. See the License for the 017 * specific language governing permissions and limitations 018 * under the License. 019 * ==================================================================== 020 * 021 * This software consists of voluntary contributions made by many 022 * individuals on behalf of the Apache Software Foundation. For more 023 * information on the Apache Software Foundation, please see 024 * <http://www.apache.org/>. 025 * 026 */ 027 028package org.apache.http; 029 030/** 031 * Constants enumerating the HTTP headers. All headers defined in RFC1945 (HTTP/1.0), RFC2616 (HTTP/1.1), and RFC2518 032 * (WebDAV) are listed. 033 * 034 * @since 4.1 035 */ 036public final class HttpHeaders { 037 038 private HttpHeaders() { 039 } 040 041 /** RFC 2616 (HTTP/1.1) Section 14.1 */ 042 public static final String ACCEPT = "Accept"; 043 044 /** RFC 2616 (HTTP/1.1) Section 14.2 */ 045 public static final String ACCEPT_CHARSET = "Accept-Charset"; 046 047 /** RFC 2616 (HTTP/1.1) Section 14.3 */ 048 public static final String ACCEPT_ENCODING = "Accept-Encoding"; 049 050 /** RFC 2616 (HTTP/1.1) Section 14.4 */ 051 public static final String ACCEPT_LANGUAGE = "Accept-Language"; 052 053 /** RFC 2616 (HTTP/1.1) Section 14.5 */ 054 public static final String ACCEPT_RANGES = "Accept-Ranges"; 055 056 /** RFC 2616 (HTTP/1.1) Section 14.6 */ 057 public static final String AGE = "Age"; 058 059 /** RFC 1945 (HTTP/1.0) Section 10.1, RFC 2616 (HTTP/1.1) Section 14.7 */ 060 public static final String ALLOW = "Allow"; 061 062 /** RFC 1945 (HTTP/1.0) Section 10.2, RFC 2616 (HTTP/1.1) Section 14.8 */ 063 public static final String AUTHORIZATION = "Authorization"; 064 065 /** RFC 2616 (HTTP/1.1) Section 14.9 */ 066 public static final String CACHE_CONTROL = "Cache-Control"; 067 068 /** RFC 2616 (HTTP/1.1) Section 14.10 */ 069 public static final String CONNECTION = "Connection"; 070 071 /** RFC 1945 (HTTP/1.0) Section 10.3, RFC 2616 (HTTP/1.1) Section 14.11 */ 072 public static final String CONTENT_ENCODING = "Content-Encoding"; 073 074 /** RFC 2616 (HTTP/1.1) Section 14.12 */ 075 public static final String CONTENT_LANGUAGE = "Content-Language"; 076 077 /** RFC 1945 (HTTP/1.0) Section 10.4, RFC 2616 (HTTP/1.1) Section 14.13 */ 078 public static final String CONTENT_LENGTH = "Content-Length"; 079 080 /** RFC 2616 (HTTP/1.1) Section 14.14 */ 081 public static final String CONTENT_LOCATION = "Content-Location"; 082 083 /** RFC 2616 (HTTP/1.1) Section 14.15 */ 084 public static final String CONTENT_MD5 = "Content-MD5"; 085 086 /** RFC 2616 (HTTP/1.1) Section 14.16 */ 087 public static final String CONTENT_RANGE = "Content-Range"; 088 089 /** RFC 1945 (HTTP/1.0) Section 10.5, RFC 2616 (HTTP/1.1) Section 14.17 */ 090 public static final String CONTENT_TYPE = "Content-Type"; 091 092 /** RFC 1945 (HTTP/1.0) Section 10.6, RFC 2616 (HTTP/1.1) Section 14.18 */ 093 public static final String DATE = "Date"; 094 095 /** RFC 2518 (WevDAV) Section 9.1 */ 096 public static final String DAV = "Dav"; 097 098 /** RFC 2518 (WevDAV) Section 9.2 */ 099 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}