1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2025-01-13 19:56:40 +00:00
kamokan/src/response.cpp

21 lines
424 B
C++

#include "response.hpp"
#include <utility>
namespace tawashi {
Response::Response (std::string&& parType) :
m_content_type(std::move(parType))
{
}
Response::~Response() noexcept = default;
void Response::send() {
std::cout << "Content-type:" << m_content_type << "\n\n";
this->on_send(std::cout);
std::cout.flush();
}
const CGIEnv& Response::cgi_env() const {
return m_cgi_env;
}
} //namespace tawashi