public final class Request extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Request.Builder
A builder that can build
Requests. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object) |
byte[] |
getBody()
Returns a copy of the body that will be sent along with the request.
|
Map<String,String> |
getHeaders()
Returns the headers that will be included in the request.
|
Method |
getMethod()
Returns the HTTP method of the request.
|
Long |
getTimeout()
Returns the number of milliseconds that the underlying transport should spend on an HTTP round
trip before failing with an error.
|
String |
getUrl()
Returns the URL that the request will be performed against.
|
int |
hashCode() |
public String getUrl()
public Long getTimeout()
public Map<String,String> getHeaders()
public byte[] getBody()
public Method getMethod()