mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2025-01-13 19:56:40 +00:00
18 lines
357 B
C++
18 lines
357 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();
|
||
|
}
|
||
|
} //namespace tawashi
|