]> git.tdb.fi Git - libs/net.git/blobdiff - source/request.h
Socket::close was removed
[libs/net.git] / source / request.h
index 6f713abf5b526f6a402c5c11bcede10adeb607d9..ec5030e7e543b6e04c004df30f4ddf8937add09d 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmsphttp
-Copyright © 2008  Mikkosoft Productions, Mikko Rasa
-Distributed under the LGPL
-*/
-
 #ifndef MSP_HTTP_REQUEST_H_
 #define MSP_HTTP_REQUEST_H_
 
@@ -16,15 +9,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