接口 RouteResponse
- 所有已知实现类:
ApacheClientResponse,DefaultClientResponse
public interface RouteResponse
- 从以下版本开始:
- 2.0.8
- 作者:
- xiaoymin@foxmail.com 2020/10/29 21:58
-
方法详细资料
-
getHeaders
List<HeaderWrapper> getHeaders()获取响应头- 返回:
- 响应头列表
-
success
boolean success()是否请求成功- 返回:
- 请求成功
-
getStatusCode
int getStatusCode()获取响应状态码- 返回:
- 响应状态码
-
getContentType
String getContentType()获取响应类型- 返回:
- 响应类型
-
getContentLength
Long getContentLength()响应内容长度- 返回:
- 内容长度
-
getCharsetEncoding
Charset getCharsetEncoding()获取encoding- 返回:
- 字符集编码
-
getBody
InputStream getBody()响应实体- 返回:
- 响应流
-
text
String text()获取text返回- 返回:
- 静态文本
-