@Contract(threading=IMMUTABLE) public class ResponseConnControl extends Object implements HttpResponseInterceptor
Connection
header
to outgoing responses, which is essential for managing persistence of
HTTP/1.0
connections.
This interceptor is recommended for the HTTP protocol conformance and the correct operation of the server-side message processing pipeline.
Modifier and Type | Field and Description |
---|---|
static ResponseConnControl |
INSTANCE |
Constructor and Description |
---|
ResponseConnControl() |
Modifier and Type | Method and Description |
---|---|
void |
process(HttpResponse response,
EntityDetails entity,
HttpContext localContext)
Processes a response.
|
public static final ResponseConnControl INSTANCE
public void process(HttpResponse response, EntityDetails entity, HttpContext localContext) throws HttpException, IOException
HttpResponseInterceptor
process
in interface HttpResponseInterceptor
response
- the response to processentity
- the request entity details or null
if not availablelocalContext
- the context for the requestHttpException
- in case of an HTTP protocol violationIOException
- in case of an I/O errorCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.