]> git.tdb.fi Git - libs/net.git/blob - source/response.h
Rename data to content in Message
[libs/net.git] / source / response.h
1 /* $Id$
2
3 This file is part of libmsphttp
4 Copyright © 2008  Mikkosoft Productions, Mikko Rasa
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_HTTP_RESPONSE_H_
9 #define MSP_HTTO_RESPONSE_H_
10
11 #include "message.h"
12 #include "status.h"
13
14 namespace Msp {
15 namespace Http {
16
17 class Response: public Message
18 {
19 private:
20         Status status;
21
22         Response() { }
23 public:
24         Response(Status);
25         Status get_status() const { return status; }
26         virtual std::string str() const;
27
28         static Response parse(const std::string &);
29 };
30
31 } // namespace Http
32 } // namespace Msp
33
34 #endif