public class ClientToProxyConnectionWithHttp2 extends ClientToProxyConnectionWithWebSocket implements Http11Listener
HttpProxyConnection.RequestReadMonitor, HttpProxyConnection.RequestWrittenMonitor, HttpProxyConnection.ResponseReadMonitor, HttpProxyConnection.ResponseWrittenMonitorChannelHandler.Sharable| 限定符和类型 | 字段和说明 |
|---|---|
private static io.netty.handler.codec.http.HttpServerUpgradeHandler.UpgradeCodecFactory |
UPGRADE_CODEC_FACTORY |
log, proxyManagerchannel, ctx, lastReadTime, logger, sslEngine| 构造器和说明 |
|---|
ClientToProxyConnectionWithHttp2(ProxyConfigOptions proxyConfigOptions,
HttpProxyConfigOptions httpProxyConfigOptions,
HttpProxyManager httpProxyManager,
String applicationName,
SslEngineSource sslEngineSource,
ChannelPipeline pipeline,
io.netty.handler.traffic.GlobalTrafficShapingHandler globalTrafficShapingHandler) |
| 限定符和类型 | 方法和说明 |
|---|---|
private void |
configureClearText(Channel ch) |
private void |
configureSsl(Channel ch) |
void |
handlerAdded(ChannelHandlerContext ctx) |
protected void |
initChannelPipeline(ChannelPipeline pipeline)
Initialize the
ChannelPipeline for the client to proxy channel. |
void |
onHttp11(ChannelPipeline pipeline,
boolean removeHttp11ServerCodec) |
channelRead0, userEventTriggeredbecameSaturated, becameWritable, connected, disconnected, exceptionCaught, getClientAddress, getHttpConfigOptions, getProxyConfigOptions, readHTTPChunk, readHTTPInitial, respond, serverBecameSaturated, serverBecameWriteable, serverConnectionFailed, serverConnectionFlowStarted, serverConnectionSucceeded, serverDisconnected, timedOut, timedOutdisconnect, doWrite, encrypt, encrypt, getHttpFiltersFromProxyServer, getLOG, getSslEngine, isSaturated, readProxyIncoming, resumeReading, stopReading, write, writeHttp, writeRaw, writeToChannel, writeToChannelNoFlushbecome, channelActive, channelInactive, channelRegistered, channelRegistered0, channelWritabilityChanged, exceptionCaught, getApplicationName, getChannel, getCurrentState, is, isConnecting, readIncomingacceptInboundMessage, channelReadchannelReadComplete, channelUnregisteredensureNotSharable, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlerRemovedprivate static final io.netty.handler.codec.http.HttpServerUpgradeHandler.UpgradeCodecFactory UPGRADE_CODEC_FACTORY
public ClientToProxyConnectionWithHttp2(ProxyConfigOptions proxyConfigOptions, HttpProxyConfigOptions httpProxyConfigOptions, HttpProxyManager httpProxyManager, String applicationName, SslEngineSource sslEngineSource, ChannelPipeline pipeline, io.netty.handler.traffic.GlobalTrafficShapingHandler globalTrafficShapingHandler)
private void configureSsl(Channel ch)
private void configureClearText(Channel ch)
public void handlerAdded(ChannelHandlerContext ctx) throws Exception
handlerAdded 在接口中 ChannelHandlerhandlerAdded 在类中 ChannelHandlerAdapterExceptionprotected void initChannelPipeline(ChannelPipeline pipeline)
ClientToProxyConnectionChannelPipeline for the client to proxy channel. Proxy acts like a server here.
A ChannelPipeline invokes the read (Inbound) handlers in ascending ordering of the list and then the
write (Outbound) handlers in descending ordering.
Regarding the Javadoc of HttpObjectAggregator it's needed to have the HttpResponseEncoder or
HttpRequestEncoder before the HttpObjectAggregator in the
ChannelPipeline.initChannelPipeline 在类中 ClientToProxyConnectionpipeline - channel pipelinepublic void onHttp11(ChannelPipeline pipeline, boolean removeHttp11ServerCodec)
onHttp11 在接口中 Http11ListenerCopyright © 2022 Zodiac. All rights reserved.