]> git.tdb.fi Git - libs/net.git/blob - source/request.h
26d668f95f5d931f9a8b36a1b7f78722d6f35b59
[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 private:
20         std::string method;
21         std::string path;
22
23 public:
24         Request(const std::string &, const std::string &);
25         virtual std::string str() const;
26
27         static Request parse(const std::string &);
28         static Request from_url(const std::string &);
29 };
30
31 } // namespace Http
32 } // namespace Msp
33
34 #endif