]> git.tdb.fi Git - libs/net.git/blob - source/request.h
Style update: spaces around assignments
[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         const std::string &get_method() const { return method; }
26         const std::string &get_path() const { return path; }
27         virtual std::string str() const;
28
29         static Request parse(const std::string &);
30         static Request from_url(const std::string &);
31 };
32
33 } // namespace Http
34 } // namespace Msp
35
36 #endif