@Contract(threading=STATELESS) public class RequestDefaultHeaders extends Object implements org.apache.hc.core5.http.HttpRequestInterceptor
Modifier and Type | Field and Description |
---|---|
static RequestDefaultHeaders |
INSTANCE
Default instance of
RequestDefaultHeaders . |
Constructor and Description |
---|
RequestDefaultHeaders() |
RequestDefaultHeaders(Collection<? extends org.apache.hc.core5.http.Header> defaultHeaders) |
Modifier and Type | Method and Description |
---|---|
void |
process(org.apache.hc.core5.http.HttpRequest request,
org.apache.hc.core5.http.EntityDetails entity,
org.apache.hc.core5.http.protocol.HttpContext context) |
public static final RequestDefaultHeaders INSTANCE
RequestDefaultHeaders
.public RequestDefaultHeaders(Collection<? extends org.apache.hc.core5.http.Header> defaultHeaders)
public RequestDefaultHeaders()
public void process(org.apache.hc.core5.http.HttpRequest request, org.apache.hc.core5.http.EntityDetails entity, org.apache.hc.core5.http.protocol.HttpContext context) throws org.apache.hc.core5.http.HttpException, IOException
process
in interface org.apache.hc.core5.http.HttpRequestInterceptor
org.apache.hc.core5.http.HttpException
IOException
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.