28 lines
557 B
Java
28 lines
557 B
Java
package com.jenkov.nioserver.http;
|
|
|
|
/**
|
|
* Created by jjenkov on 19-10-2015.
|
|
*/
|
|
public class HttpHeaders {
|
|
|
|
public static int HTTP_METHOD_GET = 1;
|
|
public static int HTTP_METHOD_POST = 2;
|
|
public static int HTTP_METHOD_PUT = 3;
|
|
public static int HTTP_METHOD_HEAD = 4;
|
|
public static int HTTP_METHOD_DELETE = 5;
|
|
|
|
public int httpMethod = 0;
|
|
|
|
public int hostStartIndex = 0;
|
|
public int hostEndIndex = 0;
|
|
|
|
public int contentLength = 0;
|
|
|
|
public int bodyStartIndex = 0;
|
|
public int bodyEndIndex = 0;
|
|
|
|
|
|
|
|
|
|
}
|