]> git.tdb.fi Git - libs/net.git/blobdiff - source/response.h
Initial revision
[libs/net.git] / source / response.h
diff --git a/source/response.h b/source/response.h
new file mode 100644 (file)
index 0000000..20e144e
--- /dev/null
@@ -0,0 +1,34 @@
+/* $Id$
+
+This file is part of libmsphttp
+Copyright © 2008  Mikkosoft Productions, Mikko Rasa
+Distributed under the LGPL
+*/
+
+#ifndef MSP_HTTP_RESPONSE_H_
+#define MSP_HTTO_RESPONSE_H_
+
+#include "message.h"
+#include "status.h"
+
+namespace Msp {
+namespace Http {
+
+class Response: public Message
+{
+public:
+       Response(Status);
+       Status get_status() const { return status; }
+       virtual std::string str() const;
+
+       static Response parse(const std::string &);
+private:
+       Status status;
+
+       Response() { }
+};
+
+} // namespace Http
+} // namespace Msp
+
+#endif