public class Request extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Request.Builder<T extends Request.Builder<T>> |
static interface |
Request.BuilderWithBody<T extends Request.BuilderWithBody<T>> |
static interface |
Request.Template |
static interface |
Request.TemplateWithBody |
| Constructor and Description |
|---|
Request(Endpoint endpoint,
RequestMethod method,
Charset charset,
Map<String,String> urlParameters,
Map<String,String> headers,
RequestBody body) |
| Modifier and Type | Method and Description |
|---|---|
<T> Response<T> |
execute(HTTPClient client,
ResponseParser<? extends T> parser) |
RequestBody |
getBody() |
Map<String,String> |
getHeaders() |
RequestMethod |
getMethod() |
URL |
getRequestURL() |
public Request(Endpoint endpoint, RequestMethod method, Charset charset, Map<String,String> urlParameters, Map<String,String> headers, RequestBody body)
public RequestMethod getMethod()
public RequestBody getBody()
public URL getRequestURL()
public <T> Response<T> execute(HTTPClient client, ResponseParser<? extends T> parser) throws IOException
IOExceptionCopyright © 2019. All rights reserved.