noos::cloud::http_header Class Reference
class encapsulates the HTTP Header 1.1 standard More...
#include <http_header.hpp>
Public Member Functions | |
http_header (std::string uri) | |
constructor of the http_header More... | |
http_header (std::string uri, bool keep_alive) | |
constructor of the http_header More... | |
void | make_multipart_form () |
make this header a multipart/form-data More... | |
std::string | to_string (noos::cloud::platform endpoint, unsigned int length) |
complete the rest of parameters that we need for the http_header and More... | |
std::string | get_boundary () const |
get boundary More... | |
Detailed Description
class encapsulates the HTTP Header 1.1 standard
- Version
- 0.7.0
- Date
- August 2016
Constructor & Destructor Documentation
noos::cloud::http_header::http_header | ( | std::string | uri | ) |
noos::cloud::http_header::http_header | ( | std::string | uri, |
bool | keep_alive | ||
) |
constructor of the http_header
set the
- Parameters
-
uri
- Warning
- requires newline set
- Parameters
-
keep_alive
Member Function Documentation
void noos::cloud::http_header::make_multipart_form | ( | ) |
make this header a multipart/form-data
- Warning
- it will modify the HTTP Header
std::string noos::cloud::http_header::to_string | ( | noos::cloud::platform | endpoint, |
unsigned int | length | ||
) |
complete the rest of parameters that we need for the http_header and
- Returns
- all of them in a string
- Parameters
-
endpoint contains the data of the platform length is the size of the content
std::string noos::cloud::http_header::get_boundary | ( | ) | const |
get boundary
- Returns
- boundary string without they hyphens (–)
The documentation for this class was generated from the following file:
- noos/cloud/asio/http_header.hpp