20namespace network_manager
23namespace common_headers
43namespace common_content_types
56 bool hasSameName (
const Header& header)
const;
57 bool hasSameName (
const std::string&
name)
const;
59 static Header Parse (
const std::string& header);
69 void setHeader (
const Header& header);
70 void setHeader (
const std::string& headerName, std::string headerValue);
72 void addHeader (
Header header);
73 void addHeader (std::string headerName, std::string headerValue);
75 bool hasHeader (
const std::string& headerName)
const noexcept;
77 std::string getHeaderValue (
const std::string& headerName)
const;
79 const Header* getHeader (
size_t idx)
const noexcept;
80 const Header* getHeader (
const std::string&
name)
const noexcept;
82 size_t getHeadersCount () const noexcept;
90 Header* getHeader (
size_t idx) noexcept;
91 Header* getHeader (const
std::
string& headerName) noexcept;
const TranslatableString name
Declare macros for the Network Manager library DLL API.
#define NETWORK_MANAGER_API
auto end(const Ptr< Type, BaseDeleter > &p)
Enables range-for.
auto begin(const Ptr< Type, BaseDeleter > &p)
Enables range-for.
const std::string ApplicationXml
const std::string ApplicationXWwwFormUrlencoded
const std::string ApplicationXGzip
const std::string ApplicationJson
const std::string ApplicationXOctetStream