27 lines
334 B
C
27 lines
334 B
C
|
#pragma once
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
class HttpResponse
|
||
|
{
|
||
|
|
||
|
std::string mHttpVersion;
|
||
|
std::string mResponseCode;
|
||
|
std::string mContentType;
|
||
|
std::string mBody;
|
||
|
|
||
|
public:
|
||
|
|
||
|
HttpResponse();
|
||
|
|
||
|
~HttpResponse();
|
||
|
|
||
|
void SetBody(const std::string& body);
|
||
|
|
||
|
unsigned GetBodyLength();
|
||
|
|
||
|
std::string GetHeaderString();
|
||
|
|
||
|
std::string ToString();
|
||
|
};
|