24namespace network_manager
30 using Timeout = std::chrono::milliseconds;
32 static constexpr size_t INFINITE_REDIRECTS = std::numeric_limits<size_t>::max();
35 explicit Request(std::string url)
noexcept;
42 Request& setURL(std::string url)
noexcept;
43 const std::string& getURL() const noexcept;
46 std::
string getHeader(const
std::
string&
name) const;
53 std::
string getCookie(const
std::
string&
name) const;
57 Request& setMaxRedirects(
size_t redirects) noexcept;
58 size_t getMaxRedirects() const noexcept;
62 Timeout getTimeout() const noexcept;
69 size_t mMaxRedirects { INFINITE_REDIRECTS };
71 Timeout mTimeout { std::chrono::seconds (5) };
Define HTTP cookies list class.
Declare macros for the Network Manager library DLL API.
#define NETWORK_MANAGER_API
Request(const Request &)=default
std::chrono::milliseconds Timeout
Request(Request &&)=default