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
+2 -6
View File
@@ -8,9 +8,6 @@
namespace webcc {
class Response;
using ResponsePtr = std::shared_ptr<Response>;
class Response : public Message {
public:
explicit Response(Status status = Status::kOK) : status_(status) {
@@ -36,14 +33,13 @@ public:
void Prepare() override;
private:
void PrepareStatusLine();
private:
int status_; // Status code
std::string reason_; // Reason phrase
};
using ResponsePtr = std::shared_ptr<Response>;
} // namespace webcc
#endif // WEBCC_RESPONSE_H_