Package org.asynchttpclient.channel
Class DefaultKeepAliveStrategy
- java.lang.Object
-
- org.asynchttpclient.channel.DefaultKeepAliveStrategy
-
- All Implemented Interfaces:
KeepAliveStrategy
public class DefaultKeepAliveStrategy extends Object implements KeepAliveStrategy
Connection strategy implementing standard HTTP 1.0/1.1 behavior.
-
-
Constructor Summary
Constructors Constructor Description DefaultKeepAliveStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleankeepAlive(InetSocketAddress remoteAddress, Request ahcRequest, io.netty.handler.codec.http.HttpRequest request, io.netty.handler.codec.http.HttpResponse response)Implemented in accordance with RFC 7230 section 6.1 ...
-
-
-
Method Detail
-
keepAlive
public boolean keepAlive(InetSocketAddress remoteAddress, Request ahcRequest, io.netty.handler.codec.http.HttpRequest request, io.netty.handler.codec.http.HttpResponse response)
Implemented in accordance with RFC 7230 section 6.1 ...- Specified by:
keepAlivein interfaceKeepAliveStrategy- Parameters:
remoteAddress- the remote InetSocketAddress associated with the requestahcRequest- the Request, as built by AHCrequest- the HTTP request sent to Nettyresponse- the HTTP response received from Netty- Returns:
- true if the connection should be kept alive, false if it should be closed.
-
-