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

com.github.puhiayang.handler.proxy.IProxyHandler Maven / Gradle / Ivy

Go to download

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

The newest version!
package com.github.puhiayang.handler.proxy;

import com.github.puhiayang.bean.ClientRequest;
import io.netty.channel.ChannelHandlerContext;

/**
 * 代理handler
 *
 * @author puhaiyang
 * created on 2019/10/25 23:07
 */
public interface IProxyHandler {
    /**
     * 发送到server
     *
     * @param clientRequest 客户端请求
     * @param ctx           ChannelHandlerContext
     * @param msg           数据
     */
    void sendToServer(ClientRequest clientRequest, final ChannelHandlerContext ctx, final Object msg);

    /**
     * 发送到client
     */
    void sendToClient(ClientRequest clientRequest, final ChannelHandlerContext ctx, final Object msg);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy