View Javadoc
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 org.apache.hc.core5.http;
29  
30  /**
31   * Constants enumerating standard and common HTTP headers.
32   *
33   * @since 4.1
34   */
35  public final class HttpHeaders {
36  
37      private HttpHeaders() {
38          // Don't allow instantiation.
39      }
40  
41      public static final String ACCEPT = "Accept";
42  
43      public static final String ACCEPT_CHARSET = "Accept-Charset";
44  
45      public static final String ACCEPT_ENCODING = "Accept-Encoding";
46  
47      public static final String ACCEPT_LANGUAGE = "Accept-Language";
48  
49      public static final String ACCEPT_RANGES = "Accept-Ranges";
50  
51      public static final String AGE = "Age";
52  
53      public static final String ALLOW = "Allow";
54  
55      public static final String AUTHORIZATION = "Authorization";
56  
57      public static final String CACHE_CONTROL = "Cache-Control";
58  
59      public static final String CONNECTION = "Connection";
60  
61      public static final String CONTENT_ENCODING = "Content-Encoding";
62  
63      public static final String CONTENT_LANGUAGE = "Content-Language";
64  
65      public static final String CONTENT_LENGTH = "Content-Length";
66  
67      public static final String CONTENT_LOCATION = "Content-Location";
68  
69      public static final String CONTENT_MD5 = "Content-MD5";
70  
71      public static final String CONTENT_RANGE = "Content-Range";
72  
73      public static final String CONTENT_TYPE = "Content-Type";
74  
75      public static final String DATE = "Date";
76  
77      public static final String DAV = "Dav";
78  
79      public static final String DEPTH = "Depth";
80  
81      public static final String DESTINATION = "Destination";
82  
83      public static final String ETAG = "ETag";
84  
85      public static final String EXPECT = "Expect";
86  
87      public static final String EXPIRES = "Expires";
88  
89      public static final String FROM = "From";
90  
91      public static final String HOST = "Host";
92  
93      public static final String IF = "If";
94  
95      public static final String IF_MATCH = "If-Match";
96  
97      public static final String IF_MODIFIED_SINCE = "If-Modified-Since";
98  
99      public static final String IF_NONE_MATCH = "If-None-Match";
100 
101     public static final String IF_RANGE = "If-Range";
102 
103     public static final String IF_UNMODIFIED_SINCE = "If-Unmodified-Since";
104 
105     public static final String KEEP_ALIVE = "Keep-Alive";
106 
107     public static final String LAST_MODIFIED = "Last-Modified";
108 
109     public static final String LOCATION = "Location";
110 
111     public static final String LOCK_TOKEN = "Lock-Token";
112 
113     public static final String MAX_FORWARDS = "Max-Forwards";
114 
115     public static final String OVERWRITE = "Overwrite";
116 
117     public static final String PRAGMA = "Pragma";
118 
119     public static final String PROXY_AUTHENTICATE = "Proxy-Authenticate";
120 
121     public static final String PROXY_AUTHORIZATION = "Proxy-Authorization";
122 
123     public static final String RANGE = "Range";
124 
125     public static final String REFERER = "Referer";
126 
127     public static final String RETRY_AFTER = "Retry-After";
128 
129     public static final String SERVER = "Server";
130 
131     public static final String STATUS_URI = "Status-URI";
132 
133     public static final String TE = "TE";
134 
135     public static final String TIMEOUT = "Timeout";
136 
137     public static final String TRAILER = "Trailer";
138 
139     public static final String TRANSFER_ENCODING = "Transfer-Encoding";
140 
141     public static final String UPGRADE = "Upgrade";
142 
143     public static final String USER_AGENT = "User-Agent";
144 
145     public static final String VARY = "Vary";
146 
147     public static final String VIA = "Via";
148 
149     public static final String WARNING = "Warning";
150 
151     public static final String WWW_AUTHENTICATE = "WWW-Authenticate";
152 
153 }