类 RealConnection
java.lang.Object
com.lark.oapi.okhttp.internal.http2.Http2Connection.Listener
com.lark.oapi.okhttp.internal.connection.RealConnection
- 所有已实现的接口:
Connection
-
字段概要
字段从类继承的字段 com.lark.oapi.okhttp.internal.http2.Http2Connection.Listener
REFUSE_INCOMING_STREAMS -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidcancel()voidconnect(int connectTimeout, int readTimeout, int writeTimeout, int pingIntervalMillis, boolean connectionRetryEnabled, Call call, EventListener eventListener) Returns the TLS handshake used to establish this connection, or null if the connection is not HTTPS.booleanisHealthy(boolean doExtensiveChecks) Returns true if this connection is ready to host new streams.booleanReturns true if this is an HTTP/2 connection.voidPrevent further exchanges from being created on this connection.voidonSettings(Http2Connection connection) When settings are received, adjust the allocation limit.voidonStream(Http2Stream stream) Refuse incoming streams.protocol()Returns the protocol negotiated by this connection, orProtocol.HTTP_1_1if no protocol has been negotiated.route()Returns the route used by this connection.socket()Returns the socket that this connection is using.booleansupportsUrl(HttpUrl url) toString()
-
字段详细资料
-
connectionPool
-
-
构造器详细资料
-
RealConnection
-
-
方法详细资料
-
noNewExchanges
public void noNewExchanges()Prevent further exchanges from being created on this connection. -
connect
public void connect(int connectTimeout, int readTimeout, int writeTimeout, int pingIntervalMillis, boolean connectionRetryEnabled, Call call, EventListener eventListener) -
supportsUrl
-
route
从接口复制的说明:ConnectionReturns the route used by this connection.- 指定者:
route在接口中Connection
-
cancel
public void cancel() -
socket
从接口复制的说明:ConnectionReturns the socket that this connection is using. Returns an SSL socket if this connection is HTTPS. If this is an HTTP/2 connection the socket may be shared by multiple concurrent calls.- 指定者:
socket在接口中Connection
-
isHealthy
public boolean isHealthy(boolean doExtensiveChecks) Returns true if this connection is ready to host new streams. -
onStream
Refuse incoming streams.- 指定者:
onStream在类中Http2Connection.Listener- 抛出:
IOException
-
onSettings
When settings are received, adjust the allocation limit.- 覆盖:
onSettings在类中Http2Connection.Listener
-
handshake
从接口复制的说明:ConnectionReturns the TLS handshake used to establish this connection, or null if the connection is not HTTPS.- 指定者:
handshake在接口中Connection
-
isMultiplexed
public boolean isMultiplexed()Returns true if this is an HTTP/2 connection. Such connections can be used in multiple HTTP requests simultaneously. -
protocol
从接口复制的说明:ConnectionReturns the protocol negotiated by this connection, orProtocol.HTTP_1_1if no protocol has been negotiated. This method returnsProtocol.HTTP_1_1even if the remote peer is usingProtocol.HTTP_1_0.- 指定者:
protocol在接口中Connection
-
toString
-