public final class HttpResult<T>
extends java.lang.Object
构造器和说明 |
---|
HttpResult(HttpResponse<T> response,
T content) |
限定符和类型 | 方法和说明 |
---|---|
QCloudServiceException |
asException() |
int |
code() |
T |
content() |
long |
getContentLength() |
java.lang.String |
header(java.lang.String name) |
java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
headers() |
boolean |
isSuccessful() |
java.lang.String |
message() |
HttpRequest<T> |
request() |
public HttpResult(HttpResponse<T> response, T content)
public T content()
public int code()
public java.lang.String message()
public HttpRequest<T> request()
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers()
public long getContentLength()
public final boolean isSuccessful()
public QCloudServiceException asException()
public java.lang.String header(java.lang.String name)