Audacity 3.2.0
|
#include <HeadersList.h>
Public Types | |
using | HeadersIterator = HeadersStorageType::iterator |
using | HeadersConstIterator = HeadersStorageType::const_iterator |
Public Member Functions | |
void | setHeader (const Header &header) |
void | setHeader (const std::string &headerName, std::string headerValue) |
void | addHeader (Header header) |
void | addHeader (std::string headerName, std::string headerValue) |
bool | hasHeader (const std::string &headerName) const noexcept |
std::string | getHeaderValue (const std::string &headerName) const |
const Header * | getHeader (size_t idx) const noexcept |
const Header * | getHeader (const std::string &name) const noexcept |
size_t | getHeadersCount () const noexcept |
HeadersIterator | begin () noexcept |
HeadersIterator | end () noexcept |
HeadersConstIterator | begin () const noexcept |
HeadersConstIterator | end () const noexcept |
Private Types | |
using | HeadersStorageType = std::vector< Header > |
Private Member Functions | |
Header * | getHeader (size_t idx) noexcept |
Header * | getHeader (const std::string &headerName) noexcept |
Private Attributes | |
HeadersStorageType | mHeaders |
Definition at line 64 of file HeadersList.h.
using audacity::network_manager::HeadersList::HeadersConstIterator = HeadersStorageType::const_iterator |
Definition at line 69 of file HeadersList.h.
using audacity::network_manager::HeadersList::HeadersIterator = HeadersStorageType::iterator |
Definition at line 68 of file HeadersList.h.
|
private |
Definition at line 66 of file HeadersList.h.
void HeadersList::addHeader | ( | Header | header | ) |
Definition at line 109 of file HeadersList.cpp.
References addHeader(), audacity::network_manager::Header::Name, and audacity::network_manager::Header::Value.
Referenced by addHeader().
void HeadersList::addHeader | ( | std::string | headerName, |
std::string | headerValue | ||
) |
Definition at line 114 of file HeadersList.cpp.
References mHeaders.
|
noexcept |
Definition at line 159 of file HeadersList.cpp.
References mHeaders.
|
noexcept |
Definition at line 149 of file HeadersList.cpp.
References mHeaders.
|
noexcept |
Definition at line 164 of file HeadersList.cpp.
References mHeaders.
|
noexcept |
Definition at line 154 of file HeadersList.cpp.
References mHeaders.
|
privatenoexcept |
Definition at line 177 of file HeadersList.cpp.
|
noexcept |
Definition at line 139 of file HeadersList.cpp.
References name.
|
noexcept |
Definition at line 134 of file HeadersList.cpp.
Referenced by getHeaderValue(), and setHeader().
|
privatenoexcept |
Definition at line 169 of file HeadersList.cpp.
|
noexcept |
Definition at line 144 of file HeadersList.cpp.
References mHeaders.
std::string HeadersList::getHeaderValue | ( | const std::string & | headerName | ) | const |
Definition at line 124 of file HeadersList.cpp.
References getHeader(), and audacity::network_manager::Header::Value.
Referenced by audacity::network_manager::CurlResponse::getHeader(), and audacity::network_manager::Request::getHeader().
|
noexcept |
Definition at line 119 of file HeadersList.cpp.
void HeadersList::setHeader | ( | const Header & | header | ) |
Definition at line 94 of file HeadersList.cpp.
References audacity::network_manager::Header::Name, setHeader(), and audacity::network_manager::Header::Value.
Referenced by setHeader(), audacity::network_manager::MultipartData::Part::SetHeader(), and audacity::network_manager::Request::setHeader().
void HeadersList::setHeader | ( | const std::string & | headerName, |
std::string | headerValue | ||
) |
Definition at line 99 of file HeadersList.cpp.
References getHeader(), mHeaders, and audacity::network_manager::Header::Value.
|
private |
Definition at line 95 of file HeadersList.h.
Referenced by addHeader(), begin(), end(), getHeadersCount(), and setHeader().