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
21
src/response.hpp
Normal file
21
src/response.hpp
Normal file
|
@ -0,0 +1,21 @@
|
|||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
namespace tawashi {
|
||||
class Response {
|
||||
public:
|
||||
virtual ~Response() noexcept;
|
||||
|
||||
void send();
|
||||
|
||||
protected:
|
||||
Response (std::string&& parType);
|
||||
|
||||
private:
|
||||
virtual void on_send (std::ostream& parStream) = 0;
|
||||
|
||||
std::string m_content_type;
|
||||
};
|
||||
} //namespace tawashi
|
Loading…
Add table
Add a link
Reference in a new issue