Rework the body of request and response

This commit is contained in:
Chunting Gu
2019-07-03 17:37:44 +08:00
parent b9f2ba6a41
commit 98aeeae012
39 changed files with 1122 additions and 677 deletions
+6
View File
@@ -79,6 +79,8 @@ public:
void Parse(const std::string& str);
void Reset();
bool Valid() const;
bool multipart() const {
@@ -209,6 +211,10 @@ public:
// API: CLIENT
void Prepare(Payload* payload);
// Get the payload size.
// Used by the request to calculate content length.
std::size_t GetSize();
private:
// Generate headers from properties.
void SetHeaders();