public interface HttpClientFactory
CloseableHttpClient objects| Modifier and Type | Method and Description |
|---|---|
org.apache.hc.client5.http.impl.classic.CloseableHttpClient |
createHttpClient(org.apache.hc.core5.http.HttpHost httpHost,
boolean acceptAnyCertificate,
int retries,
int connectTimeoutMs,
java.util.Map<java.lang.String,java.lang.String> headers,
org.gradle.api.logging.Logger logger,
boolean quiet)
Creates an HTTP client for the given host
|
org.apache.hc.client5.http.impl.classic.CloseableHttpClient createHttpClient(org.apache.hc.core5.http.HttpHost httpHost,
boolean acceptAnyCertificate,
int retries,
int connectTimeoutMs,
java.util.Map<java.lang.String,java.lang.String> headers,
org.gradle.api.logging.Logger logger,
boolean quiet)
httpHost - the host to connect toacceptAnyCertificate - true if HTTPS certificate verification
errors should be ignored and any certificate (even an invalid one)
should be acceptedretries - the number of retries to perform if an HTTP request failsconnectTimeoutMs - the maximum number of milliseconds to wait until
a connection is established. A value of 0 (zero) means infinite timeout.
A negative value is interpreted as undefined.headers - the HTTP headers specified by the userlogger - the project's loggerquiet - true if the quiet flag is set