| 436 | }; |
| 437 | |
| 438 | HttpMessage::HttpMessage(bool read_body_progressively, |
| 439 | HttpMethod request_method) |
| 440 | : _request_method(request_method) |
| 441 | , _read_body_progressively(read_body_progressively) { |
| 442 | http_parser_init(&_parser, HTTP_BOTH); |
| 443 | _parser.allow_chunked_length = 1; |
| 444 | _parser.data = this; |
| 445 | } |
| 446 | |
| 447 | HttpMessage::~HttpMessage() { |
| 448 | if (_body_reader) { |
nothing calls this directly
no test coverage detected