@Contract(threading=IMMUTABLE) public class RequestConnControl extends Object implements HttpRequestInterceptor
Connection header
to the outgoing requests, which is essential for managing persistence of
HTTP/1.0 connections. This interceptor is recommended for
client side protocol processors.| 限定符和类型 | 字段和说明 |
|---|---|
static HttpRequestInterceptor |
INSTANCE
Singleton instance.
|
| 构造器和说明 |
|---|
RequestConnControl() |
public static final HttpRequestInterceptor INSTANCE
public void process(HttpRequest request, EntityDetails entity, HttpContext context) throws HttpException, IOException
HttpRequestInterceptorprocess 在接口中 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 © 2023. All rights reserved.