| 596 | |
| 597 | private: |
| 598 | static int on_message_begin(http_parser* p) |
| 599 | { |
| 600 | StreamingResponseDecoder* decoder = (StreamingResponseDecoder*) p->data; |
| 601 | |
| 602 | CHECK(!decoder->failure); |
| 603 | |
| 604 | decoder->header = HEADER_FIELD; |
| 605 | decoder->field.clear(); |
| 606 | decoder->value.clear(); |
| 607 | |
| 608 | CHECK(decoder->response == nullptr); |
| 609 | CHECK_NONE(decoder->writer); |
| 610 | |
| 611 | decoder->response = new http::Response(); |
| 612 | decoder->response->type = http::Response::PIPE; |
| 613 | decoder->writer = None(); |
| 614 | |
| 615 | return http_parsing::SUCCESS; |
| 616 | } |
| 617 | |
| 618 | static int on_chunk_complete(http_parser* p) |
| 619 | { |
nothing calls this directly
no outgoing calls
no test coverage detected