fix ssl handshake and parsing issues

This commit is contained in:
Chunting Gu
2021-06-15 17:09:04 +08:00
parent 52fbba705b
commit e27338854c
10 changed files with 115 additions and 41 deletions
+4 -1
View File
@@ -121,6 +121,8 @@ public:
return content_length_;
}
// Parse the given length of data.
// Return false if the parsing is failed.
bool Parse(const char* data, std::size_t length);
protected:
@@ -152,7 +154,8 @@ protected:
bool ParseFixedContent(const char* data, std::size_t length);
bool ParseChunkedContent(const char* data, std::size_t length);
bool ParseChunkSize();
bool ParseChunkSize(const std::string& line);
bool IsFixedContentFull() const;