public class HttpResponse extends HttpBase<HttpResponse>
| 构造器和说明 |
|---|
HttpResponse() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
body()
获取响应主体
|
byte[] |
bodyBytes()
获取响应流字节码
|
InputStream |
bodyStream()
获得服务区响应流
|
String |
contentEncoding()
获取内容编码
|
int |
getStatus()
获取状态码
|
boolean |
isGzip() |
static HttpResponse |
readResponse(HttpConnection httpConnection)
读取响应信息
|
String |
toString() |
charset, charset, header, header, header, header, header, header, header, headers, httpVersion, httpVersion, removeHeader, removeHeaderpublic static HttpResponse readResponse(HttpConnection httpConnection)
httpConnection - Http连接对象public int getStatus()
public String contentEncoding()
public boolean isGzip()
public InputStream bodyStream()
public byte[] bodyBytes()
public String body()
public String toString()
toString 在类中 HttpBase<HttpResponse>Copyright © 2016. All rights reserved.