mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2025-07-02 14:04:16 +00:00
Redirect to the new page if pastie was successful.
This commit is contained in:
parent
4354f4bf29
commit
ef9e74c473
6 changed files with 71 additions and 20 deletions
|
@ -29,13 +29,22 @@ namespace tawashi {
|
|||
void send();
|
||||
|
||||
protected:
|
||||
Response (std::string&& parType);
|
||||
enum Types {
|
||||
ContentType,
|
||||
Location
|
||||
};
|
||||
|
||||
Response (Types parRespType, std::string&& parValue);
|
||||
const cgi::Env& cgi_env() const;
|
||||
void change_type (Types parRespType, std::string&& parValue);
|
||||
|
||||
private:
|
||||
virtual void on_process();
|
||||
virtual void on_send (std::ostream& parStream) = 0;
|
||||
|
||||
cgi::Env m_cgi_env;
|
||||
std::string m_content_type;
|
||||
std::string m_resp_value;
|
||||
Types m_resp_type;
|
||||
bool m_header_sent;
|
||||
};
|
||||
} //namespace tawashi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue