1
0
Fork 0
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:
King_DuckZ 2017-06-14 20:19:18 +01:00
commit b6edab7171
7 changed files with 39 additions and 12 deletions

View file

@ -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