mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2025-10-02 15:00:02 +00:00
Implement self-destruct upon read when selfdes=1 in POST
This commit is contained in:
parent
8d19c794ed
commit
b6edab7171
7 changed files with 39 additions and 12 deletions
|
@ -50,6 +50,11 @@ namespace kamokan {
|
|||
typedef std::pair<boost::optional<std::string>, tawashi::HttpHeader> StringOrHeader;
|
||||
|
||||
virtual tawashi::HttpHeader on_process() override;
|
||||
StringOrHeader submit_to_storage (const boost::string_view& parText, uint32_t parExpiry, const boost::string_view& parLang);
|
||||
StringOrHeader submit_to_storage (
|
||||
const boost::string_view& parText,
|
||||
uint32_t parExpiry,
|
||||
const boost::string_view& parLang,
|
||||
bool parSelfDestruct
|
||||
);
|
||||
};
|
||||
} //namespace kamokan
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue