SaltAPI  1.1
An API for the HTTPd / Zia by Salty Studio.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Request.cpp
Go to the documentation of this file.
1 //
2 // Created by wery_a on 09/01/17.
3 //
4 
5 #include "HTTP/Request.hpp"
6 
7 namespace HTTP {
9 
10  }
11 
13 
14  }
15 
16  std::string const& Request::GetMethod() const {
17  return m_method;
18  }
19 
20  std::string const& Request::GetURL() const {
21  return m_url;
22  }
23 
25  return m_response;
26  }
27 
28  void Request::SetMethod(std::string const &method) {
29  m_method = method;
30  }
31 
32  void Request::SetURL(std::string const &url) {
33  m_url = url;
34  }
35 
36  void Request::SetResponse(Response *response) {
37  m_response = response;
38  }
39 }
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