#ifndef REQUEST_RESPONSE_H #define REQUEST_RESPONSE_H 1 #include #include class RequestResponse { public: RequestResponse(struct evhttp_request * const req); ~RequestResponse(); void UseInputHeader(); void UseOutputHeader(); bool AddOutputHeaderByRef(std::string & key, std::string & value); bool AddOutputHeader(std::string key, std::string value); bool GetInputHeaderByRef(std::string & key, std::string & value); bool GetInputHeader(std::string key, std::string value); private: struct evhttp_request * const m_Request; struct evkeyvalq * m_InputHeader; struct evkeyvalq * m_OutputHeader; }; #endif