类 SimpleHttpResponseParser

java.lang.Object
com.alibaba.csp.sentinel.transport.heartbeat.client.SimpleHttpResponseParser

public class SimpleHttpResponseParser extends Object

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()
  • 方法详细资料