类 SimpleHttpResponseParser
java.lang.Object
com.alibaba.csp.sentinel.transport.heartbeat.client.SimpleHttpResponseParser
The parser provides functionality to parse raw bytes HTTP response to a SimpleHttpResponse.
Note that this is a very NAIVE parser, Content-Length must be specified in the
HTTP response header, otherwise, the body will be dropped. All other body type such as
Transfer-Encoding: chunked, Transfer-Encoding: deflate are not supported.
- 作者:
- leyou
-
构造器概要
构造器 -
方法概要
-
构造器详细资料
-
SimpleHttpResponseParser
public SimpleHttpResponseParser(int maxSize) -
SimpleHttpResponseParser
public SimpleHttpResponseParser()
-
-
方法详细资料
-
parse
Parse bytes from an input stream to aSimpleHttpResponse.- 参数:
in- input stream- 返回:
- parsed HTTP response entity
- 抛出:
IOException- when an IO error occurs
-