SaltAPI  1.1
An API for the HTTPd / Zia by Salty Studio.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Response.cpp
Go to the documentation of this file.
1 //
2 // Created by wery_a on 09/01/17.
3 //
4 
5 #include "HTTP/Response.hpp"
6 
7 namespace HTTP {
9 
10  }
11 
13 
14  }
15 
16  std::string const& Response::GetStatusMsg() const {
17  return m_status_msg;
18  }
19 
20  unsigned int Response::GetStatusCode() const {
21  return m_status_code;
22  }
23 
25  return m_request;
26  }
27 
28  void Response::SetStatusMsg(std::string const &msg) {
29  m_status_msg = msg;
30  }
31 
32  void Response::SetStatusCode(unsigned int code) {
33  m_status_code = code;
34  }
35 
36  void Response::SetRequest(Request *request) {
37  m_request = request;
38  }
39 }
void SetStatusCode(unsigned int code)
set code
Definition: Response.cpp:32
unsigned int GetStatusCode() const
Definition: Response.cpp:20
void SetRequest(Request *request)
set Request
Definition: Response.cpp:36
Request * GetRequest() const
Definition: Response.cpp:24
void SetStatusMsg(std::string const &msg)
set message
Definition: Response.cpp:28
std::string const & GetStatusMsg() const
Definition: Response.cpp:16
virtual ~Response()
Definition: Response.cpp:12