From 823dc403a9b56e00be4982d0082d30b8df5e53d6 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Wed, 3 Jun 2015 00:08:30 +0200 Subject: Add CGI::get_data utility method --- src/cgi.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/cgi.hh') diff --git a/src/cgi.hh b/src/cgi.hh index 5879694..1403719 100644 --- a/src/cgi.hh +++ b/src/cgi.hh @@ -24,6 +24,8 @@ public: // Return true if post data is multipart, false otherwise virtual bool post_data(std::map* data) = 0; virtual void query_data(std::map* data) = 0; + // Will first try post_data and fallback to query_data + void get_data(std::map* data); virtual std::string request_path() = 0; virtual request_type request_type() = 0; virtual std::string content_type() = 0; -- cgit v1.2.3-70-g09d2