]> git.tdb.fi Git - libs/net.git/blobdiff - source/request.h
Support handling requests asynchronously
[libs/net.git] / source / request.h
index 6f713abf5b526f6a402c5c11bcede10adeb607d9..b04fb7e9b7500886885d90888a6beadcd0b8f56f 100644 (file)
@@ -16,15 +16,18 @@ namespace Http {
 
 class Request: public Message
 {
+private:
+       std::string method;
+       std::string path;
+
 public:
        Request(const std::string &, const std::string &);
+       const std::string &get_method() const { return method; }
+       const std::string &get_path() const { return path; }
        virtual std::string str() const;
 
        static Request parse(const std::string &);
        static Request from_url(const std::string &);
-private:
-       std::string method;
-       std::string path;
 };
 
 } // namespace Http