@return true on end parsing (GetExtraDataSize() return amount not used bytes) throw exception on bad http format (unsupported encoding, etc) sz == 0 signaling end of input stream
| 52 | /// throw exception on bad http format (unsupported encoding, etc) |
| 53 | /// sz == 0 signaling end of input stream |
| 54 | bool Parse(const char* data, size_t sz) { |
| 55 | if (ParseImpl(data, sz)) { |
| 56 | if (DecodeContent_) { |
| 57 | DecodeContent(DecodedContent_); |
| 58 | } |
| 59 | return true; |
| 60 | } |
| 61 | return false; |
| 62 | } |
| 63 | |
| 64 | const char* Data() const noexcept { |
| 65 | return Data_; |
no outgoing calls
no test coverage detected