public class HttpRequest extends Object
| Constructor and Description |
|---|
HttpRequest() |
| Modifier and Type | Method and Description |
|---|---|
void |
addBytes(String key,
byte[] content) |
void |
addFile(String httpParamName,
File file) |
void |
addHeader(String key,
String value) |
void |
addParam(String key,
Object value) |
Map<String,String> |
getHeaders() |
String |
getUrl() |
void |
setContentType(HttpContentType contentType) |
void |
setMethod(HttpMethod method) |
void |
setUrl(String url) |
public String getUrl()
public void setUrl(String url)
public void setMethod(HttpMethod method)
public void setContentType(HttpContentType contentType)
public void addBytes(String key, byte[] content)
Copyright © 2019. All rights reserved.