metahandler.java
来自「一款Java实现的HTTP代理服务器」· Java 代码 · 共 30 行
JAVA
30 行
package rabbit.meta;import java.io.IOException;import java.nio.channels.SocketChannel;import rabbit.http.HttpHeader;import rabbit.proxy.Connection;import rabbit.util.SProperties;import rabbit.util.TrafficLogger;/** The specification for dynamic status information handlers in the proxy. * * @author <a href="mailto:robo@khelekore.org">Robert Olofsson</a> */public interface MetaHandler { /** Handle a client request. * * @param request the http request header. * @param htab the supplied argument to the page (CGI-parameters). * @param con the Connection that is serving the request. * @param tlProxy the TrafficLogger to log proxy traffic on. * @param tlClient the TrafficLogger to log client traffic on. */ void handle (HttpHeader request, SProperties htab, Connection con, TrafficLogger tlProxy, TrafficLogger tlClient) throws IOException;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?