8 #ifndef _HTTP_REQUEST_H_
9 #define _HTTP_REQUEST_H_
39 inline const std::string&
host()
const {
return m_host; }
42 inline const std::string&
url()
const {
return m_url; }
68 #endif // _HTTP_REQUEST_H_
http_request(std::string host, std::string url="", int port=80)
void set_url(std::string url)
Set the URL.
const std::string & url() const
void init_default_headers()
The HTTP request implementation.
virtual void clear()
Reset the http object.
std::unordered_map< std::string, std::string > m_headers
void clear()
Reset the http object.
void prepare_data_buffer()
Prepare a HTTP request/response to be sent.
const std::string & host() const
void set_port(int port)
Set the port.
void set_host(std::string host)
Set the host.