#ifndef __RESPONSE_H__ #define __RESPONSE_H__ #include "string" #include namespace Req { class Response { public: Response(); static Response* ErrorResponse(const std::string & content); Response(Response &&) = default; Response(const Response &) = default; Response &operator=(Response &&) = delete; Response &operator=(const Response &) = delete; ~Response(); long httpCode(); void setHttpCode(long code); std::string& getContent(); bool isResponsed(); private: long mHttpCode = 404; std::string mContent; bool mResponsed; }; }; #endif // __RESPONSE_H__