]> git.tdb.fi Git - libs/net.git/blob - source/request.h
Initial revision
[libs/net.git] / source / request.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_REQUEST_H_
9 #define MSP_HTTP_REQUEST_H_
10
11 #include <string>
12 #include "message.h"
13
14 namespace Msp {
15 namespace Http {
16
17 class Request: public Message
18 {
19 public:
20         Request(const std::string &, const std::string &);
21         virtual std::string str() const;
22
23         static Request parse(const std::string &);
24         static Request from_url(const std::string &);
25 private:
26         std::string method;
27         std::string path;
28 };
29
30 } // namespace Http
31 } // namespace Msp
32
33 #endif