package com.sptg.common.core.constant;

/**
 * title: HttpConstant
 * package: com.sptg.common.core.constant
 * description: Http常量
 *                  
 *                
 */
public interface HttpConstant {

    /**
     * 未知
     */
    String UNKNOWN = "unknown";

    /**
     * 请求头：可获取到Ip信息
     */
    String[] IP_HEADER_ARRAY = {
            "X-Requested-For",
            "X-Forwarded-For",
            "Proxy-Client-IP",
            "WL-Proxy-Client-IP",
            "HTTP_CLIENT_IP",
            "HTTP_X_FORWARDED_FOR"
    };

    /**
     * 请求头：可获取到用户代理相关信息
     */
    String USER_AGENT_HEADER = "user-agent";

    /**
     * 请求头：访问令牌
     */
    String ACCESS_TOKEN = "access-token";

    /**
     * Cookie：记住我
     */
    String REMEMBER_ME = "rememberMe";

    /**
     * 请求头：数据签名
     */
    String DATA_SIGN = "data-sign";

    /**
     * 请求头：时间戳
     */
    String TIME_STAMP = "time-stamp";

    /**
     * logo 图标
     */
    String LOGO_ICON = "favicon.ico";

    /**
     * content-type
     */
    String APPLICATION_JSON = "application/json";

    /**
     * content-type
     */
    String APPLICATION_JSON_UTF8 = "application/json;charset=utf-8";

    /**
     * content-type
     */
    String TEXT_PLAIN = "text/plain;charset=utf-8";

}
