public class Http extends Object
| Modifier and Type | Method and Description |
|---|---|
Http |
basicAuth(String username,
String password) |
Http |
bearerAuth(String token) |
Http |
cookie(String name,
String value) |
Http |
cookie(String domain,
String name,
String value) |
Http |
data(String data,
org.apache.http.entity.ContentType contentType) |
static Http |
delete(String url) |
Http |
disableRedirect() |
HttpResponseParser |
execute() |
static Http |
get(String url) |
Http |
header(String name,
String value) |
static Http |
post(String url) |
Http |
preemptiveAuth() |
static Http |
put(String url) |
Http |
trustAll() |
Http |
trustStore(Path trustStorePath,
String trustStorePassword) |
Http |
trustStore(Path trustStorePath,
String trustStorePassword,
HostnameVerifier verifier) |
HttpWaiters |
waiters() |
public static Http get(String url) throws MalformedURLException
MalformedURLExceptionpublic static Http post(String url) throws MalformedURLException
MalformedURLExceptionpublic static Http put(String url) throws MalformedURLException
MalformedURLExceptionpublic static Http delete(String url) throws MalformedURLException
MalformedURLExceptionpublic Http preemptiveAuth()
public Http disableRedirect()
public Http trustAll()
public Http trustStore(Path trustStorePath, String trustStorePassword, HostnameVerifier verifier)
public HttpResponseParser execute() throws IOException
IOExceptionpublic HttpWaiters waiters()
Copyright © 2024. All rights reserved.