Returns whether the decoder is currently writing a response body. Helpful for knowing if the latest response is complete.
| 590 | // Returns whether the decoder is currently writing a response |
| 591 | // body. Helpful for knowing if the latest response is complete. |
| 592 | bool writingBody() const |
| 593 | { |
| 594 | return writer.isSome(); |
| 595 | } |
| 596 | |
| 597 | private: |
| 598 | static int on_message_begin(http_parser* p) |