Package com.foxinmy.weixin4j.http
Interface HttpResponse
-
- All Superinterfaces:
HttpMessage
- All Known Implementing Classes:
AbstractHttpResponse
,HttpComponent3Response
,HttpComponent4_1Response
,HttpComponent4_2Response
,Netty4HttpResponse
,OkHttpResponse2
,OkHttpResponse3
,SimpleHttpResponse
,WeixinResponse
public interface HttpResponse extends HttpMessage
HTTP 响应- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
释放资源InputStream
getBody()
响应内容byte[]
getContent()
响应内容HttpVersion
getProtocol()
HTTP协议HttpStatus
getStatus()
响应状态-
Methods inherited from interface com.foxinmy.weixin4j.http.HttpMessage
getHeaders
-
-
-
-
Method Detail
-
getProtocol
HttpVersion getProtocol()
HTTP协议- Returns:
-
getStatus
HttpStatus getStatus()
响应状态- Returns:
-
getBody
InputStream getBody()
响应内容- Returns:
-
getContent
byte[] getContent()
响应内容- Returns:
-
close
void close()
释放资源
-
-