1 /*
2 * Copyright 2012 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 package org.jboss.netty.handler.codec.http;
17
18 import java.nio.charset.Charset;
19
20 import org.jboss.netty.util.CharsetUtil;
21
22 public final class HttpConstants {
23
24 /**
25 * Horizontal space
26 */
27 public static final byte SP = 32;
28
29 /**
30 * Horizontal tab
31 */
32 public static final byte HT = 9;
33
34 /**
35 * Carriage return
36 */
37 public static final byte CR = 13;
38
39 /**
40 * Equals '='
41 */
42 public static final byte EQUALS = 61;
43
44 /**
45 * Line feed character
46 */
47 public static final byte LF = 10;
48
49 /**
50 * Colon ':'
51 */
52 public static final byte COLON = 58;
53
54 /**
55 * Semicolon ';'
56 */
57 public static final byte SEMICOLON = 59;
58
59 /**
60 * Comma ','
61 */
62 public static final byte COMMA = 44;
63
64 /**
65 * Double quote '"'
66 */
67 public static final byte DOUBLE_QUOTE = '"';
68
69 /**
70 * Default character set (UTF-8)
71 */
72 public static final Charset DEFAULT_CHARSET = CharsetUtil.UTF_8;
73
74 private HttpConstants() {
75 // Unused
76 }
77 }