public interface IHttpRequestBuilder<T extends IHttpRequestBuilder<?>>
| Modifier and Type | Method and Description |
|---|---|
T |
addCookie(ICookie cookie)
Adds a cookie.
|
T |
addCookie(String name,
String value)
Adds a cookie.
|
T |
addCookies(Collection<ICookie> cookies)
Adds some cookies.
|
T |
addHeaderValue(String key,
String value)
Adds a value to the specified header.
|
T |
addHeaderValues(String key,
List<String> values)
Adds some values to the specified header.
|
T |
disableSslCertificateErrors()
Disables
SSL certificates errors (such as self-signed
certificate errors). |
IHttpResponse |
send()
Sends the request and gets the HTTP response.
|
T |
setHeaders(Map<String,List<String>> headers)
Sets the headers.
|
T |
setHeaderValues(String key,
List<String> values)
Sets the values of the specified header.
|
T |
setHttpAuthCredentials(String username,
String password)
Set HTTP authentication credentials.
|
T |
setHttpClientBuilder(org.spincast.shaded.org.apache.http.impl.client.HttpClientBuilder httpClientBuilder)
Sets a specific
HttpClientBuilder to use. |
T |
setRequestConfig(org.spincast.shaded.org.apache.http.client.config.RequestConfig requestConfig)
Sets a custom
RequestConfig to use. |
T addHeaderValue(String key, String value)
T addHeaderValues(String key, List<String> values)
T setHeaders(Map<String,List<String>> headers)
T setHeaderValues(String key, List<String> values)
T addCookies(Collection<ICookie> cookies)
T setRequestConfig(org.spincast.shaded.org.apache.http.client.config.RequestConfig requestConfig)
RequestConfig to use. If not provided,
a default one will be used.T setHttpClientBuilder(org.spincast.shaded.org.apache.http.impl.client.HttpClientBuilder httpClientBuilder)
HttpClientBuilder to use. If not provided,
a default one will be used.T disableSslCertificateErrors()
SSL certificates errors (such as self-signed
certificate errors).
SSL certificate errors are not disabled by default.
Be sure you know what you are doing if you disable this! It may lead to
some security concerns.T setHttpAuthCredentials(String username, String password)
IHttpResponse send()
Copyright © 2016. All rights reserved.