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.handler.codec.AsciiString;
20  
21  /**
22   * Standard HTTP header values.
23   */
24  public final class HttpHeaderValues {
25      /**
26       * {@code "application/x-www-form-urlencoded"}
27       */
28      public static final AsciiString APPLICATION_X_WWW_FORM_URLENCODED =
29              new AsciiString("application/x-www-form-urlencoded");
30      /**
31       * {@code "application/octet-stream"}
32       */
33      public static final AsciiString APPLICATION_OCTET_STREAM = new AsciiString("application/octet-stream");
34      /**
35       * {@code "attachment"}
36       * See {@link HttpHeaderNames#CONTENT_DISPOSITION}
37       */
38      public static final AsciiString ATTACHMENT = new AsciiString("attachment");
39      /**
40       * {@code "base64"}
41       */
42      public static final AsciiString BASE64 = new AsciiString("base64");
43      /**
44       * {@code "binary"}
45       */
46      public static final AsciiString BINARY = new AsciiString("binary");
47      /**
48       * {@code "boundary"}
49       */
50      public static final AsciiString BOUNDARY = new AsciiString("boundary");
51      /**
52       * {@code "bytes"}
53       */
54      public static final AsciiString BYTES = new AsciiString("bytes");
55      /**
56       * {@code "charset"}
57       */
58      public static final AsciiString CHARSET = new AsciiString("charset");
59      /**
60       * {@code "chunked"}
61       */
62      public static final AsciiString CHUNKED = new AsciiString("chunked");
63      /**
64       * {@code "close"}
65       */
66      public static final AsciiString CLOSE = new AsciiString("close");
67      /**
68       * {@code "compress"}
69       */
70      public static final AsciiString COMPRESS = new AsciiString("compress");
71      /**
72       * {@code "100-continue"}
73       */
74      public static final AsciiString CONTINUE = new AsciiString("100-continue");
75      /**
76       * {@code "deflate"}
77       */
78      public static final AsciiString DEFLATE = new AsciiString("deflate");
79      /**
80       * {@code "x-deflate"}
81       */
82      public static final AsciiString X_DEFLATE = new AsciiString("x-deflate");
83      /**
84       * {@code "file"}
85       * See {@link HttpHeaderNames#CONTENT_DISPOSITION}
86       */
87      public static final AsciiString FILE = new AsciiString("file");
88      /**
89       * {@code "filename"}
90       * See {@link HttpHeaderNames#CONTENT_DISPOSITION}
91       */
92      public static final AsciiString FILENAME = new AsciiString("filename");
93      /**
94       * {@code "form-data"}
95       * See {@link HttpHeaderNames#CONTENT_DISPOSITION}
96       */
97      public static final AsciiString FORM_DATA = new AsciiString("form-data");
98      /**
99       * {@code "gzip"}
100      */
101     public static final AsciiString GZIP = new AsciiString("gzip");
102     /**
103      * {@code "x-gzip"}
104      */
105     public static final AsciiString X_GZIP = new AsciiString("x-gzip");
106     /**
107      * {@code "identity"}
108      */
109     public static final AsciiString IDENTITY = new AsciiString("identity");
110     /**
111      * {@code "keep-alive"}
112      */
113     public static final AsciiString KEEP_ALIVE = new AsciiString("keep-alive");
114     /**
115      * {@code "max-age"}
116      */
117     public static final AsciiString MAX_AGE = new AsciiString("max-age");
118     /**
119      * {@code "max-stale"}
120      */
121     public static final AsciiString MAX_STALE = new AsciiString("max-stale");
122     /**
123      * {@code "min-fresh"}
124      */
125     public static final AsciiString MIN_FRESH = new AsciiString("min-fresh");
126     /**
127      * {@code "multipart/form-data"}
128      */
129     public static final AsciiString MULTIPART_FORM_DATA = new AsciiString("multipart/form-data");
130     /**
131      * {@code "multipart/mixed"}
132      */
133     public static final AsciiString MULTIPART_MIXED = new AsciiString("multipart/mixed");
134     /**
135      * {@code "must-revalidate"}
136      */
137     public static final AsciiString MUST_REVALIDATE = new AsciiString("must-revalidate");
138     /**
139      * {@code "name"}
140      * See {@link HttpHeaderNames#CONTENT_DISPOSITION}
141      */
142     public static final AsciiString NAME = new AsciiString("name");
143     /**
144      * {@code "no-cache"}
145      */
146     public static final AsciiString NO_CACHE = new AsciiString("no-cache");
147     /**
148      * {@code "no-store"}
149      */
150     public static final AsciiString NO_STORE = new AsciiString("no-store");
151     /**
152      * {@code "no-transform"}
153      */
154     public static final AsciiString NO_TRANSFORM = new AsciiString("no-transform");
155     /**
156      * {@code "none"}
157      */
158     public static final AsciiString NONE = new AsciiString("none");
159     /**
160      * {@code "only-if-cached"}
161      */
162     public static final AsciiString ONLY_IF_CACHED = new AsciiString("only-if-cached");
163     /**
164      * {@code "private"}
165      */
166     public static final AsciiString PRIVATE = new AsciiString("private");
167     /**
168      * {@code "proxy-revalidate"}
169      */
170     public static final AsciiString PROXY_REVALIDATE = new AsciiString("proxy-revalidate");
171     /**
172      * {@code "public"}
173      */
174     public static final AsciiString PUBLIC = new AsciiString("public");
175     /**
176      * {@code "quoted-printable"}
177      */
178     public static final AsciiString QUOTED_PRINTABLE = new AsciiString("quoted-printable");
179     /**
180      * {@code "s-maxage"}
181      */
182     public static final AsciiString S_MAXAGE = new AsciiString("s-maxage");
183     /**
184      * {@code "text/plain"}
185      */
186     public static final AsciiString TEXT_PLAIN = new AsciiString("text/plain");
187     /**
188      * {@code "trailers"}
189      */
190     public static final AsciiString TRAILERS = new AsciiString("trailers");
191     /**
192      * {@code "Upgrade"}
193      */
194     public static final AsciiString UPGRADE = new AsciiString("Upgrade");
195     /**
196      * {@code "websocket"}
197      */
198     public static final AsciiString WEBSOCKET = new AsciiString("websocket");
199 
200     private HttpHeaderValues() { }
201 }