1 // ======================================================================== 2 // Copyright (c) 2004-2009 Mort Bay Consulting Pty. Ltd. 3 // ------------------------------------------------------------------------ 4 // All rights reserved. This program and the accompanying materials 5 // are made available under the terms of the Eclipse Public License v1.0 6 // and Apache License v2.0 which accompanies this distribution. 7 // The Eclipse Public License is available at 8 // http://www.eclipse.org/legal/epl-v10.html 9 // The Apache License v2.0 is available at 10 // http://www.opensource.org/licenses/apache2.0.php 11 // You may elect to redistribute this code under either of these licenses. 12 // ======================================================================== 13 14 package org.eclipse.jetty.http; 15 16 /** 17 * HTTP constants 18 */ 19 public interface HttpTokens 20 { 21 // Terminal symbols. 22 static final byte COLON= (byte)':'; 23 static final byte SPACE= 0x20; 24 static final byte CARRIAGE_RETURN= 0x0D; 25 static final byte LINE_FEED= 0x0A; 26 static final byte[] CRLF = {CARRIAGE_RETURN,LINE_FEED}; 27 static final byte SEMI_COLON= (byte)';'; 28 static final byte TAB= 0x09; 29 30 public static final int SELF_DEFINING_CONTENT= -4; 31 public static final int UNKNOWN_CONTENT= -3; 32 public static final int CHUNKED_CONTENT= -2; 33 public static final int EOF_CONTENT= -1; 34 public static final int NO_CONTENT= 0; 35 36 37 }