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

com.github.puhiayang.bean.Constans Maven / Gradle / Ivy

Go to download

support http/https proxy.类似于fiddler,由java编写,代码简单便于理解。支持http/https代理!

The newest version!
package com.github.puhiayang.bean;

import io.netty.handler.codec.http.HttpResponseStatus;
import io.netty.util.AttributeKey;

/**
 * 常量
 *
 * @author puhaiyang
 * created on 2019/10/25 22:51
 */
public class Constans {
    /**
     * connect类型请求名称
     */
    public static final String CONNECT_METHOD_NAME = "CONNECT";
    /**
     * https连接协议名
     */
    public static final String HTTPS_PROTOCOL_NAME = "https";
    /**
     * 代理握手成功响应status
     */
    public final static HttpResponseStatus CONNECT_SUCCESS = new HttpResponseStatus(200, "Connection established");
    /**
     * channel中的clientReuqest
     */
    public static final AttributeKey CLIENTREQUEST_ATTRIBUTE_KEY = AttributeKey.valueOf("clientRequest");

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy