public static class NettyHttp2Client.Http2Handler
extends io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>
| 构造器和说明 |
|---|
Http2Handler(io.netty.handler.codec.http.HttpScheme scheme,
int maxContentLength,
int connectTimeout,
InetSocketAddress remoteAddress) |
| 限定符和类型 | 方法和说明 |
|---|---|
io.netty.handler.codec.http2.Http2Connection |
getConnection() |
int |
getMaxContentLength() |
io.netty.handler.ssl.SslContext |
getSslCtx() |
void |
initChannel(io.netty.channel.socket.SocketChannel ch) |
NettyHttp2Client.HttpResponseHandler |
responseHandler() |
void |
setLogger(io.netty.handler.codec.http2.Http2FrameLogger logger) |
void |
setMaxContentLength(int maxContentLength) |
NettyHttp2Client.Http2SettingsHandler |
settingsHandler() |
String |
toString() |
channelRegistered, exceptionCaught, handlerAdded, handlerRemovedpublic Http2Handler(io.netty.handler.codec.http.HttpScheme scheme,
int maxContentLength,
int connectTimeout,
InetSocketAddress remoteAddress)
throws SSLException
SSLExceptionpublic void setLogger(io.netty.handler.codec.http2.Http2FrameLogger logger)
public void setMaxContentLength(int maxContentLength)
public int getMaxContentLength()
public void initChannel(io.netty.channel.socket.SocketChannel ch)
throws Exception
initChannel 在类中 io.netty.channel.ChannelInitializer<io.netty.channel.socket.SocketChannel>Exceptionpublic io.netty.handler.codec.http2.Http2Connection getConnection()
public io.netty.handler.ssl.SslContext getSslCtx()
public NettyHttp2Client.HttpResponseHandler responseHandler()
public NettyHttp2Client.Http2SettingsHandler settingsHandler()
Copyright © 2021. All rights reserved.