Update to dms control phase1.
This commit is contained in:
23
thirdParty/Req/pub/include/Response.h
vendored
Normal file
23
thirdParty/Req/pub/include/Response.h
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
#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__
|
||||
Reference in New Issue
Block a user