]> git.tdb.fi Git - libs/net.git/blobdiff - source/response.h
Don't let exceptions from the socket fall out of Client::data_available
[libs/net.git] / source / response.h
index 20e144e8afa6d0936084f7b693c4dabde04289fb..d721ad804a4d7ea7aab8ee8a89812d644e9001ba 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_RESPONSE_H_
 #define MSP_HTTO_RESPONSE_H_
 
@@ -16,16 +9,16 @@ namespace Http {
 
 class Response: public Message
 {
+private:
+       Status status;
+
+       Response() { }
 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