stuff-from-scratch/src/core/http/HttpResponse.h

27 lines
334 B
C
Raw Normal View History

2020-05-02 07:31:03 +00:00
#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();
};