Files
GUI/thirdParty/Req/pub/include/Response.h
2023-11-16 11:43:53 +08:00

23 lines
574 B
C++

#ifndef __RESPONSE_H__
#define __RESPONSE_H__
#include "string"
#include <string>
namespace Req {
class Response
{
public:
Response();
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();
private:
long mHttpCode = 404;
std::string mContent;
};
};
#endif // __RESPONSE_H__