X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fresponse.h;fp=source%2Fresponse.h;h=20e144e8afa6d0936084f7b693c4dabde04289fb;hb=070d56e7b0036ca2e4234eb06dcae83ebfb3df34;hp=0000000000000000000000000000000000000000;hpb=bfadc624613e036507ef89b51b951870805eb11f;p=libs%2Fnet.git diff --git a/source/response.h b/source/response.h new file mode 100644 index 0000000..20e144e --- /dev/null +++ b/source/response.h @@ -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