]> git.tdb.fi Git - libs/net.git/blobdiff - source/request.h
Initial revision
[libs/net.git] / source / request.h
diff --git a/source/request.h b/source/request.h
new file mode 100644 (file)
index 0000000..6f713ab
--- /dev/null
@@ -0,0 +1,33 @@
+/* $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_
+
+#include <string>
+#include "message.h"
+
+namespace Msp {
+namespace Http {
+
+class Request: public Message
+{
+public:
+       Request(const std::string &, const std::string &);
+       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
+} // namespace Msp
+
+#endif