@Contract(threading=IMMUTABLE) public class RequestConnControl extends Object implements HttpRequestInterceptor
Connection header
to outgoing requests, 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 client-side message processing pipeline.
| Modifier and Type | Field and Description |
|---|---|
static HttpRequestInterceptor |
INSTANCE
Singleton instance.
|
| Constructor and Description |
|---|
RequestConnControl() |
| Modifier and Type | Method and Description |
|---|---|
void |
process(HttpRequest request,
EntityDetails entity,
HttpContext context)
Processes a request.
|
public static final HttpRequestInterceptor INSTANCE
public void process(HttpRequest request, EntityDetails entity, HttpContext context) throws HttpException, IOException
HttpRequestInterceptorprocess in interface HttpRequestInterceptorrequest - the request to processentity - the request entity details or null if not availablecontext - 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.