23 lines
574 B
C
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__
|