View Javadoc
1   /*
2    * Copyright 2014 The Netty Project
3    *
4    * The Netty Project licenses this file to you under the Apache License,
5    * version 2.0 (the "License"); you may not use this file except in compliance
6    * with the License. You may obtain a copy of the License at:
7    *
8    *   http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13   * License for the specific language governing permissions and limitations
14   * under the License.
15   */
16  
17  package io.netty.handler.codec.http;
18  
19  import io.netty.util.AsciiString;
20  
21  /**
22   * Standard HTTP header values.
23   */
24  public final class HttpHeaderValues {
25      /**
26       * {@code "application/json"}
27       */
28      public static final AsciiString APPLICATION_JSON = AsciiString.cached("application/json");
29      /**
30       * {@code "application/x-www-form-urlencoded"}
31       */
32      public static final AsciiString APPLICATION_X_WWW_FORM_URLENCODED =
33              AsciiString.cached("application/x-www-form-urlencoded");
34      /**
35       * {@code "application/octet-stream"}
36       */
37      public static final AsciiString APPLICATION_OCTET_STREAM = AsciiString.cached("application/octet-stream");
38      /**
39       * {@code "attachment"}
40       * See {@link HttpHeaderNames#CONTENT_DISPOSITION}
41       */
42      public static final AsciiString ATTACHMENT = AsciiString.cached("attachment");
43      /**
44       * {@code "base64"}
45       */
46      public static final AsciiString BASE64 = AsciiString.cached("base64");
47      /**
48       * {@code "binary"}
49       */
50      public static final AsciiString BINARY = AsciiString.cached("binary");
51      /**
52       * {@code "boundary"}
53       */
54      public static final AsciiString BOUNDARY = AsciiString.cached("boundary");
55      /**
56       * {@code "bytes"}
57       */
58      public static final AsciiString BYTES = AsciiString.cached("bytes");
59      /**
60       * {@code "charset"}
61       */
62      public static final AsciiString CHARSET = AsciiString.cached("charset");
63      /**
64       * {@code "chunked"}
65       */
66      public static final AsciiString CHUNKED = AsciiString.cached("chunked");
67      /**
68       * {@code "close"}
69       */
70      public static final AsciiString CLOSE = AsciiString.cached("close");
71      /**
72       * {@code "compress"}
73       */
74      public static final AsciiString COMPRESS = AsciiString.cached("compress");
75      /**
76       * {@code "100-continue"}
77       */
78      public static final AsciiString CONTINUE = AsciiString.cached("100-continue");
79      /**
80       * {@code "deflate"}
81       */
82      public static final AsciiString DEFLATE = AsciiString.cached("deflate");
83      /**
84       * {@code "x-deflate"}
85       */
86      public static final AsciiString X_DEFLATE = AsciiString.cached("x-deflate");
87      /**
88       * {@code "file"}
89       * See {@link HttpHeaderNames#CONTENT_DISPOSITION}
90       */
91      public static final AsciiString FILE = AsciiString.cached("file");
92      /**
93       * {@code "filename"}
94       * See {@link HttpHeaderNames#CONTENT_DISPOSITION}
95       */
96      public static final AsciiString FILENAME = AsciiString.cached("filename");
97      /**
98       * {@code "form-data"}
99       * See {@link HttpHeaderNames#CONTENT_DISPOSITION}
100      */
101     public static final AsciiString FORM_DATA = AsciiString.cached("form-data");
102     /**
103      * {@code "gzip"}
104      */
105     public static final AsciiString GZIP = AsciiString.cached("gzip");
106     /**
107      * {@code "gzip,deflate"}
108      */
109     public static final AsciiString GZIP_DEFLATE = AsciiString.cached("gzip,deflate");
110     /**
111      * {@code "x-gzip"}
112      */
113     public static final AsciiString X_GZIP = AsciiString.cached("x-gzip");
114     /**
115      * {@code "identity"}
116      */
117     public static final AsciiString IDENTITY = AsciiString.cached("identity");
118     /**
119      * {@code "keep-alive"}
120      */
121     public static final AsciiString KEEP_ALIVE = AsciiString.cached("keep-alive");
122     /**
123      * {@code "max-age"}
124      */
125     public static final AsciiString MAX_AGE = AsciiString.cached("max-age");
126     /**
127      * {@code "max-stale"}
128      */
129     public static final AsciiString MAX_STALE = AsciiString.cached("max-stale");
130     /**
131      * {@code "min-fresh"}
132      */
133     public static final AsciiString MIN_FRESH = AsciiString.cached("min-fresh");
134     /**
135      * {@code "multipart/form-data"}
136      */
137     public static final AsciiString MULTIPART_FORM_DATA = AsciiString.cached("multipart/form-data");
138     /**
139      * {@code "multipart/mixed"}
140      */
141     public static final AsciiString MULTIPART_MIXED = AsciiString.cached("multipart/mixed");
142     /**
143      * {@code "must-revalidate"}
144      */
145     public static final AsciiString MUST_REVALIDATE = AsciiString.cached("must-revalidate");
146     /**
147      * {@code "name"}
148      * See {@link HttpHeaderNames#CONTENT_DISPOSITION}
149      */
150     public static final AsciiString NAME = AsciiString.cached("name");
151     /**
152      * {@code "no-cache"}
153      */
154     public static final AsciiString NO_CACHE = AsciiString.cached("no-cache");
155     /**
156      * {@code "no-store"}
157      */
158     public static final AsciiString NO_STORE = AsciiString.cached("no-store");
159     /**
160      * {@code "no-transform"}
161      */
162     public static final AsciiString NO_TRANSFORM = AsciiString.cached("no-transform");
163     /**
164      * {@code "none"}
165      */
166     public static final AsciiString NONE = AsciiString.cached("none");
167     /**
168      * {@code "0"}
169      */
170     public static final AsciiString ZERO = AsciiString.cached("0");
171     /**
172      * {@code "only-if-cached"}
173      */
174     public static final AsciiString ONLY_IF_CACHED = AsciiString.cached("only-if-cached");
175     /**
176      * {@code "private"}
177      */
178     public static final AsciiString PRIVATE = AsciiString.cached("private");
179     /**
180      * {@code "proxy-revalidate"}
181      */
182     public static final AsciiString PROXY_REVALIDATE = AsciiString.cached("proxy-revalidate");
183     /**
184      * {@code "public"}
185      */
186     public static final AsciiString PUBLIC = AsciiString.cached("public");
187     /**
188      * {@code "quoted-printable"}
189      */
190     public static final AsciiString QUOTED_PRINTABLE = AsciiString.cached("quoted-printable");
191     /**
192      * {@code "s-maxage"}
193      */
194     public static final AsciiString S_MAXAGE = AsciiString.cached("s-maxage");
195     /**
196      * {@code "text/plain"}
197      */
198     public static final AsciiString TEXT_PLAIN = AsciiString.cached("text/plain");
199     /**
200      * {@code "trailers"}
201      */
202     public static final AsciiString TRAILERS = AsciiString.cached("trailers");
203     /**
204      * {@code "upgrade"}
205      */
206     public static final AsciiString UPGRADE = AsciiString.cached("upgrade");
207     /**
208      * {@code "websocket"}
209      */
210     public static final AsciiString WEBSOCKET = AsciiString.cached("websocket");
211 
212     private HttpHeaderValues() { }
213 }