SaltAPI  1.1
An API for the HTTPd / Zia by Salty Studio.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Request.hpp
Go to the documentation of this file.
1 //
2 // Created by wery_a on 07/01/17.
3 //
4 
5 #ifndef API_V2_REQUEST_HPP
6 #define API_V2_REQUEST_HPP
7 
8 #include "Message.hpp"
9 
10 namespace HTTP {
11  class Response;
12 
16  class Request : public Message {
17  public:
18  Request();
19 
20  virtual ~Request();
21 
22  private:
23  std::string m_method;
24  std::string m_url;
25 
26  Response *m_response;
27 
28  public:
33  std::string const &GetMethod() const;
34 
39  std::string const &GetURL() const;
40 
45  Response *GetResponse() const;
46 
47  public:
52  void SetMethod(std::string const &method);
53 
58  void SetURL(std::string const &url);
59 
64  void SetResponse(Response *response);
65  };
66 }
67 
68 #endif //API_V2_REQUEST_HPP
void SetMethod(std::string const &method)
set Method
Definition: Request.cpp:28
Response * GetResponse() const
Definition: Request.cpp:24
std::string const & GetURL() const
Definition: Request.cpp:20
virtual ~Request()
Definition: Request.cpp:12
std::string const & GetMethod() const
Definition: Request.cpp:16
void SetResponse(Response *response)
set Response
Definition: Request.cpp:36
void SetURL(std::string const &url)
set URL
Definition: Request.cpp:32