| Package | Description |
|---|---|
| org.aoju.bus.http | |
| org.aoju.bus.http.accord | |
| org.aoju.bus.http.metric.http |
| Modifier and Type | Method and Description |
|---|---|
abstract StreamAllocation |
Builder.streamAllocation(NewCall call) |
| Modifier and Type | Method and Description |
|---|---|
abstract Socket |
Builder.deduplicate(ConnectionPool pool,
Address address,
StreamAllocation streamAllocation) |
abstract RealConnection |
Builder.get(ConnectionPool pool,
Address address,
StreamAllocation streamAllocation,
Route route) |
| Modifier and Type | Field and Description |
|---|---|
List<Reference<StreamAllocation>> |
RealConnection.allocations
由该连接传送的当前流.
|
| Modifier and Type | Method and Description |
|---|---|
Socket |
ConnectionPool.deduplicate(Address address,
StreamAllocation streamAllocation)
如果可能,将
streamAllocation持有的连接替换为共享连接。
当并发地创建多个多路连接时,这将恢复 |
RealConnection |
ConnectionPool.get(Address address,
StreamAllocation streamAllocation,
Route route)
返回一个循环连接到
address,如果不存在这样的连接,
则返回null。如果地址尚未被路由,则路由为空. |
HttpCodec |
RealConnection.newCodec(Httpd client,
Interceptor.Chain chain,
StreamAllocation streamAllocation) |
RealWebSocket.Streams |
RealConnection.newWebSocketStreams(StreamAllocation streamAllocation) |
| Modifier and Type | Method and Description |
|---|---|
StreamAllocation |
RetryAndFollowUp.streamAllocation() |
StreamAllocation |
RealInterceptorChain.streamAllocation() |
| Modifier and Type | Method and Description |
|---|---|
Response |
RealInterceptorChain.proceed(Request request,
StreamAllocation streamAllocation,
HttpCodec httpCodec,
RealConnection connection) |
| Constructor and Description |
|---|
Http1Codec(Httpd client,
StreamAllocation streamAllocation,
BufferSource source,
BufferSink sink) |
Http2Codec(Httpd client,
Interceptor.Chain chain,
StreamAllocation streamAllocation,
Http2Connection connection) |
RealInterceptorChain(List<Interceptor> interceptors,
StreamAllocation streamAllocation,
HttpCodec httpCodec,
RealConnection connection,
int index,
Request request,
NewCall call,
EventListener eventListener,
int connectTimeout,
int readTimeout,
int writeTimeout) |
Copyright © 2020. All rights reserved.