Audacity 3.2.0
|
#include <Request.h>
Public Types | |
using | Timeout = std::chrono::milliseconds |
Public Member Functions | |
Request ()=default | |
Request (std::string url) noexcept | |
Request (const Request &)=default | |
Request (Request &&)=default | |
Request & | operator= (const Request &)=default |
Request & | operator= (Request &&)=default |
Request & | setURL (std::string url) noexcept |
const std::string & | getURL () const noexcept |
Request & | setHeader (const std::string &name, std::string value) |
std::string | getHeader (const std::string &name) const |
const HeadersList & | getHeaders () const noexcept |
Request & | setCookie (const std::string &name, std::string value) |
Request & | appendCookies (const CookiesList &list) |
std::string | getCookie (const std::string &name) const |
const CookiesList & | getCookies () noexcept |
Request & | setMaxRedirects (size_t redirects) noexcept |
size_t | getMaxRedirects () const noexcept |
Request & | setTimeout (Timeout timeout) noexcept |
Timeout | getTimeout () const noexcept |
Static Public Attributes | |
static constexpr size_t | INFINITE_REDIRECTS = std::numeric_limits<size_t>::max() |
Private Attributes | |
std::string | mUrl |
HeadersList | mHeaders |
CookiesList | mCookies |
size_t | mMaxRedirects { INFINITE_REDIRECTS } |
Timeout | mTimeout { std::chrono::seconds (5) } |
using audacity::network_manager::Request::Timeout = std::chrono::milliseconds |
|
default |
|
explicitnoexcept |
Definition at line 29 of file Request.cpp.
|
default |
|
default |
Request & Request::appendCookies | ( | const CookiesList & | list | ) |
Definition at line 103 of file Request.cpp.
References mCookies, and audacity::network_manager::CookiesList::setCookie().
std::string Request::getCookie | ( | const std::string & | name | ) | const |
Definition at line 70 of file Request.cpp.
References audacity::network_manager::CookiesList::getCookieValue(), mCookies, and name.
|
noexcept |
Definition at line 75 of file Request.cpp.
References mCookies.
Referenced by audacity::network_manager::CurlResponse::perform().
std::string Request::getHeader | ( | const std::string & | name | ) | const |
Definition at line 53 of file Request.cpp.
References audacity::network_manager::HeadersList::getHeaderValue(), mHeaders, and name.
|
noexcept |
Definition at line 58 of file Request.cpp.
References mHeaders.
Referenced by audacity::network_manager::CurlResponse::perform().
|
noexcept |
Definition at line 87 of file Request.cpp.
References mMaxRedirects.
Referenced by audacity::network_manager::CurlResponse::perform().
|
noexcept |
Definition at line 98 of file Request.cpp.
References mTimeout.
Referenced by audacity::network_manager::CurlResponse::perform().
|
noexcept |
Definition at line 41 of file Request.cpp.
References mUrl.
Referenced by audacity::network_manager::CurlResponse::getURL(), and audacity::network_manager::CurlResponse::perform().
Request & Request::setCookie | ( | const std::string & | name, |
std::string | value | ||
) |
Definition at line 63 of file Request.cpp.
References mCookies, name, and audacity::network_manager::CookiesList::setCookie().
Request & Request::setHeader | ( | const std::string & | name, |
std::string | value | ||
) |
Definition at line 46 of file Request.cpp.
References mHeaders, name, and audacity::network_manager::HeadersList::setHeader().
Referenced by audacity::cloud::audiocom::OAuthService::Authorize(), audacity::sentry::SentryRequestBuilder::CreateRequest(), audacity::cloud::audiocom::OAuthService::DoAuthorise(), audacity::cloud::audiocom::anonymous_namespace{UploadService.cpp}::AudiocomUploadOperation::HandleUploadPolicy(), audacity::cloud::audiocom::anonymous_namespace{UploadService.cpp}::AudiocomUploadOperation::HandleUploadProgress(), audacity::cloud::audiocom::anonymous_namespace{UploadService.cpp}::AudiocomUploadOperation::InitiateUpload(), audacity::cloud::audiocom::OAuthService::Register(), audacity::cloud::audiocom::SetCommonHeaders(), audacity::cloud::audiocom::anonymous_namespace{UploadService.cpp}::AudiocomUploadOperation::SetRequiredHeaders(), and audacity::cloud::audiocom::UserService::UpdateUserData().
|
noexcept |
Definition at line 80 of file Request.cpp.
Definition at line 92 of file Request.cpp.
|
noexcept |
Definition at line 34 of file Request.cpp.
|
staticconstexpr |
|
private |
Definition at line 67 of file Request.h.
Referenced by appendCookies(), getCookie(), getCookies(), and setCookie().
|
private |
Definition at line 66 of file Request.h.
Referenced by getHeader(), getHeaders(), and setHeader().
|
private |
Definition at line 69 of file Request.h.
Referenced by getMaxRedirects().
|
private |
Definition at line 71 of file Request.h.
Referenced by getTimeout().
|
private |