25namespace network_manager
30 : mUrl (std::move (url))
36 mUrl = std::move (url);
82 mMaxRedirects = redirects;
105 for (
const Cookie& cookie : list)
107 if (!cookie.isExpired())
Declare a class for constructing HTTP requests.
void setCookie(const Cookie &cookie)
std::string getCookieValue(const std::string &cookieName) const
Timeout getTimeout() const noexcept
std::string getCookie(const std::string &name) const
const HeadersList & getHeaders() const noexcept
Request & setTimeout(Timeout timeout) noexcept
const CookiesList & getCookies() noexcept
Request & appendCookies(const CookiesList &list)
Request & setCookie(const std::string &name, std::string value)
std::string getHeader(const std::string &name) const
size_t getMaxRedirects() const noexcept
std::chrono::milliseconds Timeout
Request & setMaxRedirects(size_t redirects) noexcept
Request & setURL(std::string url) noexcept
const std::string & getURL() const noexcept
Request & setHeader(const std::string &name, std::string value)