http_header.hpp
1 #ifndef NOOS_CLOUD_ASIO_HTTP_HEADER
2 #define NOOS_CLOUD_ASIO_HTTP_HEADER
3 /*
4  * LICENSE HERE
5  */
6 #include <noos/cloud/asio/includes.ihh>
7 #include <noos/cloud/asio/platform.hpp>
8 namespace noos {
10 namespace cloud {
19 {
20 public:
26  http_header(std::string uri);
27 
34  http_header(std::string uri,
35  bool keep_alive);
36 
41  void make_multipart_form();
42 
49  std::string to_string(noos::cloud::platform endpoint, unsigned int length);
50 
55  std::string get_boundary() const;
56 
57 private:
58  std::string uri_;
59  std::string user_agent_;
60  std::string connection_;
61  std::string content_length_;
62  std::string content_type_;
63  std::string boundary_;
64  std::atomic<bool> keep_alive_ = {true};
65 };
66 }
67 }
68 #endif
data of the platform where you are going to connect
Definition: platform.hpp:23
void make_multipart_form()
make this header a multipart/form-data
Definition: asio_handler.hpp:14
class encapsulates the HTTP Header 1.1 standard
Definition: http_header.hpp:18
std::string get_boundary() const
get boundary
std::string to_string(noos::cloud::platform endpoint, unsigned int length)
complete the rest of parameters that we need for the http_header and
http_header(std::string uri)
constructor of the http_header