All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alogic.remote.HttpConstants Maven / Gradle / Ivy

There is a newer version: 1.6.16
Show newest version
package com.alogic.remote;

import javax.servlet.http.HttpServletResponse;

/**
 * Http相关的常量
 * @author yyduan
 *
 * @since 1.6.8.13
 */
public final class HttpConstants {

    public static final int CR = 13; // 
    public static final int LF = 10; // 
    public static final int SP = 32; // 
    public static final int HT = 9;  // 

    public static final String TRANSFER_ENCODING = "Transfer-Encoding";
    public static final String CONTENT_LEN  = "Content-Length";
    public static final String CONTENT_TYPE = "Content-Type";
    public static final String CONTENT_ENCODING = "Content-Encoding";
    public static final String EXPECT_DIRECTIVE = "Expect";
    public static final String CONN_DIRECTIVE = "Connection";
    public static final String TARGET_HOST = "Host";
    public static final String USER_AGENT = "User-Agent";
    public static final String DATE_HEADER = "Date";
    public static final String SERVER_HEADER = "Server";
    
    public static final int E404 = HttpServletResponse.SC_NOT_FOUND;
    
    private HttpConstants() {
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy