]> git.tdb.fi Git - libs/net.git/blobdiff - source/message.h
Socket::close was removed
[libs/net.git] / source / message.h
index ae38ffafd9a65dbc1bda16f838da41cb3efa1664..4d2310273f8b3fd0e4b0014aede99623028cd023 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_MESSAGE_H_
 #define MSP_HTTP_MESSAGE_H_
 
@@ -33,6 +26,7 @@ public:
        virtual ~Message() { }
 
        void set_header(const std::string &, const std::string &);
+       bool has_header(const std::string &) const;
        const std::string &get_header(const std::string &) const;
        void add_content(const std::string &);
        const std::string &get_content() const { return content; }
@@ -40,7 +34,7 @@ public:
        const Variant &get_user_data() const { return user_data; }
        bool is_complete() const { return complete; }
        unsigned parse_content(const std::string &);
-       virtual std::string str() const =0;
+       virtual std::string str() const = 0;
 protected:
        unsigned parse_headers(const std::string &);
        std::string str_common() const;