@Contract(threading=IMMUTABLE) public class RequestTargetHost extends Object implements HttpRequestInterceptor
Host header to the outgoing message.
This interceptor is required for client side protocol processors.| 限定符和类型 | 字段和说明 |
|---|---|
static HttpRequestInterceptor |
INSTANCE
Singleton instance.
|
| 构造器和说明 |
|---|
RequestTargetHost() |
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.