aboutsummaryrefslogtreecommitdiff
path: root/src/RequestResponse.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/RequestResponse.hpp')
-rw-r--r--src/RequestResponse.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/RequestResponse.hpp b/src/RequestResponse.hpp
index da2a27d..3dccd54 100644
--- a/src/RequestResponse.hpp
+++ b/src/RequestResponse.hpp
@@ -2,13 +2,14 @@
#define REQUEST_RESPONSE_H 1
#include <event2/http.h>
+#include <event2/keyvalq_struct.h>
#include <string>
class RequestResponse
{
public:
- RequestResponse(char const * const uri_path, struct evhttp_request * const req);
+ explicit RequestResponse(char const * const uri_path, struct evhttp_request * const req);
~RequestResponse();
char const * GetUriPath() const
@@ -18,6 +19,7 @@ public:
void UseInputHeader();
void UseOutputHeader();
+ bool UseUri();
bool AddOutputHeaderByRef(std::string const & key, std::string const & value);
bool AddOutputHeader(std::string const key, std::string const value);
@@ -28,11 +30,14 @@ public:
bool GetInputHeaderByRef(std::string const & key, std::string & value);
bool GetInputHeader(std::string const key, std::string value);
+ bool QueryValueEquals(std::string key, std::string value);
+
private:
char const * const m_UriPath;
struct evhttp_request * const m_Request;
struct evkeyvalq * m_InputHeader;
struct evkeyvalq * m_OutputHeader;
+ struct evkeyvalq m_Query = {};
};
#endif