1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2025-08-07 12:59:45 +00:00

Allow users to specify min/max valid pastie sizes.

This commit is contained in:
King_DuckZ 2017-04-24 19:09:43 +01:00
parent 79e82e2489
commit 3c10d624e3
6 changed files with 31 additions and 7 deletions

View file

@ -20,6 +20,7 @@
#include "response.hpp"
#include <string>
#include <boost/optional.hpp>
#include <boost/utility/string_ref.hpp>
namespace tawashi {
class SubmitPasteResponse : public Response {
@ -29,7 +30,7 @@ namespace tawashi {
private:
virtual void on_process() override;
virtual void on_send (std::ostream& parStream) override;
boost::optional<std::string> submit_to_redis (const std::string& parText) const;
boost::optional<std::string> submit_to_redis (boost::string_ref parText) const;
std::string m_error_message;
};