public class HttpRequest extends Object
| 构造器和说明 |
|---|
HttpRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addHeader(String key,
String value) |
void |
addParam(String key,
String value) |
HttpContentType |
getContentType() |
Map<String,String> |
getHeaders() |
HttpMethod |
getMethod() |
Map<String,String> |
getParams() |
String |
getUrl() |
void |
setContentType(HttpContentType contentType) |
void |
setMethod(HttpMethod method) |
void |
setUrl(String url) |
String |
toString() |
public String getUrl()
public void setUrl(String url)
public HttpMethod getMethod()
public void setMethod(HttpMethod method)
public HttpContentType getContentType()
public void setContentType(HttpContentType contentType)
Copyright © 2017. All rights reserved.