public class HttpResponse extends HttpBase<HttpResponse>
| 构造器和说明 |
|---|
HttpResponse() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
body()
获取响应主体
|
byte[] |
bodyBytes()
获取响应流字节码
|
int |
getStatus()
获取状态码
|
static HttpResponse |
readResponse(HttpConnection httpConnection)
读取响应信息
|
accept, accept, acceptEncoding, acceptEncoding, charset, charset, contentEncoding, contentLength, contentLength, contentType, contentType, contentType, header, header, header, header, header, header, header, headers, httpVersion, httpVersion, isKeepAlive, keepAlive, mediaType, mediaType, removeHeader, removeHeaderpublic static HttpResponse readResponse(HttpConnection httpConnection)
httpConnection - Http连接对象public int getStatus()
public byte[] bodyBytes()
public String body()
Copyright © 2015. All rights reserved.