@Contract(threading=STATELESS)
public class DefaultClientConnectionReuseStrategy
extends org.apache.hc.core5.http.impl.DefaultConnectionReuseStrategy
DefaultConnectionReuseStrategy that treats
CONNECT method exchanges involved in proxy tunnelling as a special case.| Modifier and Type | Field and Description |
|---|---|
static DefaultClientConnectionReuseStrategy |
INSTANCE
Default instance of
DefaultClientConnectionReuseStrategy. |
| Constructor and Description |
|---|
DefaultClientConnectionReuseStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
keepAlive(org.apache.hc.core5.http.HttpRequest request,
org.apache.hc.core5.http.HttpResponse response,
org.apache.hc.core5.http.protocol.HttpContext context) |
public static final DefaultClientConnectionReuseStrategy INSTANCE
DefaultClientConnectionReuseStrategy.public DefaultClientConnectionReuseStrategy()
public boolean keepAlive(org.apache.hc.core5.http.HttpRequest request,
org.apache.hc.core5.http.HttpResponse response,
org.apache.hc.core5.http.protocol.HttpContext context)
keepAlive in interface org.apache.hc.core5.http.ConnectionReuseStrategykeepAlive in class org.apache.hc.core5.http.impl.DefaultConnectionReuseStrategyCopyright © 1999–2021 The Apache Software Foundation. All rights reserved.