Rework the body of request and response
This commit is contained in:
+2
-6
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user