mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2025-07-02 14:04:16 +00:00
First commit
This commit is contained in:
commit
fea5b738df
16 changed files with 315 additions and 0 deletions
17
src/response.cpp
Normal file
17
src/response.cpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
#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
|
Loading…
Add table
Add a link
Reference in a new issue