public class DefaultKeepAliveStrategy extends Object implements KeepAliveStrategy
Constructor and Description |
---|
DefaultKeepAliveStrategy() |
Modifier and Type | Method and Description |
---|---|
boolean |
keepAlive(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 https://tools.ietf.org/html/rfc7230#section-6.1
|
public boolean keepAlive(Request ahcRequest, io.netty.handler.codec.http.HttpRequest request, io.netty.handler.codec.http.HttpResponse response)
keepAlive
in interface KeepAliveStrategy
ahcRequest
- the Request, as built by AHCrequest
- the HTTP request sent to Nettyresponse
- the HTTP response received from NettyCopyright © 2017. All Rights Reserved.