public interface HttpClient<R>
Modifier and Type | Interface and Description |
---|---|
static class |
HttpClient.Method |
Modifier and Type | Method and Description |
---|---|
HttpClient<R> |
addHeader(java.lang.String name,
java.lang.String value) |
HttpClient<R> |
addPayload(java.lang.String contentType,
java.lang.String payload) |
void |
execute(RequestProcessor<R> processor) |
HttpClient<R> |
setBasicAuthCredentials(java.lang.String username,
java.lang.String password) |
HttpClient<R> |
setFollowRedirects(boolean redirects) |
HttpClient<R> |
setMethod(HttpClient.Method method) |
HttpClient<R> |
setRetryCount(int count) |
HttpClient<R> |
setTimeout(int timeoutMs) |
HttpClient<R> |
setUri(java.net.URI uri) |
HttpClient<R> setUri(java.net.URI uri)
HttpClient<R> setFollowRedirects(boolean redirects)
HttpClient<R> setBasicAuthCredentials(java.lang.String username, java.lang.String password)
HttpClient<R> setTimeout(int timeoutMs)
HttpClient<R> setMethod(HttpClient.Method method)
HttpClient<R> setRetryCount(int count)
HttpClient<R> addHeader(java.lang.String name, java.lang.String value)
HttpClient<R> addPayload(java.lang.String contentType, java.lang.String payload)
void execute(RequestProcessor<R> processor) throws java.lang.Exception
java.lang.Exception