public class HttpRequest<T>
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
HttpRequest.Builder<T> |
限定符和类型 | 字段和说明 |
---|---|
protected boolean |
calculateContentMD5 |
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
headers |
protected java.lang.String |
keyTime |
protected java.lang.String |
method |
protected java.util.Set<java.lang.String> |
noSignHeaders |
protected java.util.Set<java.lang.String> |
noSignParams |
protected java.util.Map<java.lang.String,java.lang.String> |
queries |
protected okhttp3.RequestBody |
requestBody |
protected okhttp3.Request.Builder |
requestBuilder |
protected ResponseBodyConverter<T> |
responseBodyConverter |
protected java.lang.Object |
tag |
protected java.net.URL |
url |
限定符和类型 | 方法和说明 |
---|---|
void |
addHeader(java.lang.String name,
java.lang.String value) |
void |
addOrReplaceHeader(java.lang.String name,
java.lang.String value) |
void |
addQuery(java.lang.String name,
java.lang.String value) |
okhttp3.Request |
buildRealRequest() |
long |
contentLength() |
java.lang.String |
contentType() |
java.lang.String |
getKeyTime() |
java.util.Set<java.lang.String> |
getNoSignHeaders() |
java.util.Set<java.lang.String> |
getNoSignParams() |
okhttp3.RequestBody |
getRequestBody() |
ResponseBodyConverter<T> |
getResponseBodyConverter() |
java.lang.String |
header(java.lang.String name) |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
headers() |
java.lang.String |
host() |
java.lang.String |
method() |
java.util.Map<java.lang.String,java.lang.String> |
queries() |
void |
removeHeader(java.lang.String name) |
void |
setOkHttpRequestTag(java.lang.String tag) |
void |
setUrl(java.lang.String url) |
boolean |
shouldCalculateContentMD5() |
java.lang.Object |
tag() |
java.net.URL |
url() |
protected final okhttp3.Request.Builder requestBuilder
protected final java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers
protected final java.util.Map<java.lang.String,java.lang.String> queries
protected final java.util.Set<java.lang.String> noSignHeaders
protected final java.util.Set<java.lang.String> noSignParams
protected final okhttp3.RequestBody requestBody
protected final java.lang.String method
protected final java.lang.Object tag
protected final java.net.URL url
protected final ResponseBodyConverter<T> responseBodyConverter
protected final boolean calculateContentMD5
protected final java.lang.String keyTime
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers()
public java.util.Set<java.lang.String> getNoSignHeaders()
public java.util.Set<java.lang.String> getNoSignParams()
public java.lang.String getKeyTime()
public java.util.Map<java.lang.String,java.lang.String> queries()
public java.lang.String header(java.lang.String name)
public java.lang.Object tag()
public void setOkHttpRequestTag(java.lang.String tag)
public void addHeader(java.lang.String name, java.lang.String value)
public void addOrReplaceHeader(java.lang.String name, java.lang.String value)
public void setUrl(java.lang.String url)
public void addQuery(java.lang.String name, java.lang.String value)
public void removeHeader(java.lang.String name)
public boolean shouldCalculateContentMD5()
public java.lang.String method()
public java.lang.String host()
public java.lang.String contentType()
public long contentLength() throws java.io.IOException
java.io.IOException
public java.net.URL url()
public ResponseBodyConverter<T> getResponseBodyConverter()
public okhttp3.RequestBody getRequestBody()
public okhttp3.Request buildRealRequest()