clientresourcehandler.java
来自「一款Java实现的HTTP代理服务器」· Java 代码 · 共 25 行
JAVA
25 行
package rabbit.proxy;import rabbit.http.HttpHeader;import rabbit.io.WebConnection;/** A client resource handler * * @author <a href="mailto:robo@khelekore.org">Robert Olofsson</a> */public interface ClientResourceHandler { /** Modify the request sent to the server, used to add * "Expect: 100 Continue" and similar. * @param header the HttpHeader to be modified by this client request. */ void modifyRequest (HttpHeader header); /** Transfer the resouce data * @param wc the web connection to send the resource to * @param crtl the listener that want to know when the resource * have been sent or when a failure have occurred. */ void transfer (WebConnection wc, ClientResourceTransferredListener crtl);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?