public final class HttpRequest extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HttpRequest.Builder
A builder that can build
HttpRequest s. |
Modifier and Type | Method and Description |
---|---|
String |
getAuthUrl()
Returns the URL that will be used to capture cookies for authentication before the
actual request is executed.
|
Object |
getBody()
Returns the body that will be included in the request.
|
Map<String,String> |
getCookies()
Returns the cookies that will be included in the request.
|
Boolean |
getEncodeBodyAsJson()
Returns whether or not the included body should be encoded as extended JSON when sent to the
url in this request.
|
Boolean |
getFollowRedirects()
Returns whether or not Stitch should follow redirects while executing the request.
|
Map<String,String> |
getForm()
Returns the form that will be included in the request.
|
Map<String,Collection<String>> |
getHeaders()
Returns the headers that will be included in the request.
|
HttpMethod |
getMethod()
Returns the HTTP method of the request.
|
String |
getUrl()
Returns the URL that the request will be performed against.
|
public String getUrl()
public HttpMethod getMethod()
public String getAuthUrl()
public Map<String,Collection<String>> getHeaders()
public Map<String,String> getCookies()
public Object getBody()
public Boolean getEncodeBodyAsJson()
public Map<String,String> getForm()
public Boolean getFollowRedirects()