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

18 lines
357 B
C++
Raw Normal View History

2017-04-04 19:58:40 +00:00
#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();
}
} //namespace tawashi