public class JitterRequests extends Object
| Modifier and Type | Method and Description |
|---|---|
com.mashape.unirest.request.HttpRequestWithBody |
delete(String url)
Creates a DELETE request that already contains the required authentication headers.
|
com.mashape.unirest.request.GetRequest |
get(String url)
Creates a GET request that already contains the required authentication headers.
|
Jitter |
jitter()
The providing
Jitter object. |
com.mashape.unirest.request.HttpRequestWithBody |
post(String url)
Creates a POST request that already contains the required authentication headers.
|
com.mashape.unirest.request.HttpRequestWithBody |
put(String url)
Creates a PUT request that already contains the required authentication headers.
|
String |
resolve(String url)
Resolves a URL in comparison to the Jitter object's API URL.
|
InputStream |
stream(String url)
Gets the given URL's response body.
|
public String resolve(String url)
url - The URL.public com.mashape.unirest.request.GetRequest get(String url)
url - The URL to GET.public com.mashape.unirest.request.HttpRequestWithBody post(String url)
url - The URL to POST.public com.mashape.unirest.request.HttpRequestWithBody put(String url)
url - The URL to PUT.public com.mashape.unirest.request.HttpRequestWithBody delete(String url)
url - The URL to DELETE.public InputStream stream(String url) throws IOException
url - The URL.IOException - If an error occurs.Copyright © 2016. All rights reserved.