This repository has been archived on 2021-12-05. You can view files and clone it, but cannot push or open issues or pull requests.
java-nio-server/src/main/java/com/jenkov/nioserver/http/HttpHeaders.java

27 lines
630 B
Java

package com.jenkov.nioserver.http;
/**
* Project: <strong>java-nio-server</strong><br>
* File: <strong>HttpHeaders.java</strong><br>
* Created: <strong>19 Oct 2015</strong><br>
*
* @author jjenkov
*/
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;
}