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.
| Constructor and Description |
|---|
SimpleHttpResponseParser() |
SimpleHttpResponseParser(int maxSize) |
| Modifier and Type | Method and Description |
|---|---|
SimpleHttpResponse |
parse(InputStream in)
Parse bytes from an input stream to a
SimpleHttpResponse. |
public SimpleHttpResponseParser(int maxSize)
public SimpleHttpResponseParser()
public SimpleHttpResponse parse(InputStream in) throws IOException
SimpleHttpResponse.in - input streamIOException - when an IO error occursCopyright © 2022 Alibaba Group. All rights reserved.