#include <QueryParams.hpp>
◆ CIterType
◆ IterType
◆ MapType
◆ QueryKey
◆ QueryKeyRef
◆ QueryPair
◆ QueryValue
◆ QueryValueRef
◆ QueryValues
◆ QueryParams() [1/2]
| Thoth::Http::QueryParams::QueryParams |
( |
const MapType & |
initAs | ) |
|
|
explicit |
Create with an existing map.
◆ QueryParams() [2/2]
| Thoth::Http::QueryParams::QueryParams |
( |
std::initializer_list< QueryPair > |
init | ) |
|
◆ Add()
Add a value with the specified key.
- Parameters
-
| key | The key where it will be added. |
| val | The value to be added. |
◆ begin() [1/2]
| IterType Thoth::Http::QueryParams::begin |
( |
| ) |
|
◆ begin() [2/2]
| CIterType Thoth::Http::QueryParams::begin |
( |
| ) |
const |
◆ Clear()
| void Thoth::Http::QueryParams::Clear |
( |
| ) |
|
◆ Empty()
| bool Thoth::Http::QueryParams::Empty |
( |
| ) |
const |
◆ end() [1/2]
| IterType Thoth::Http::QueryParams::end |
( |
| ) |
|
◆ end() [2/2]
| CIterType Thoth::Http::QueryParams::end |
( |
| ) |
const |
◆ Exists()
| bool Thoth::Http::QueryParams::Exists |
( |
QueryKeyRef |
key | ) |
const |
check if a key exists.
- Parameters
-
| key | The key to be checked. |
- Returns
- True if the key exists, false otherwise.
◆ Get()
Get the reference of a key but don't create if it not exists.
- Parameters
-
- Returns
- QueryValues* if the key exists, std::nullopt otherwise.
◆ operator==()
| bool Thoth::Http::QueryParams::operator== |
( |
const QueryParams & |
other | ) |
const |
- Returns
- True if both queries match.
◆ operator[]()
- Returns
- The QueryValues& associated with a key. Create if it not exists. STL containers has many problems so it must be QueryKey.
◆ Parse()
| static QueryParams Thoth::Http::QueryParams::Parse |
( |
std::string_view |
paramsStr | ) |
|
|
static |
Parse the query as it is.
◆ ParseDecodified()
| static std::expected< QueryParams, RequestError > Thoth::Http::QueryParams::ParseDecodified |
( |
std::string_view |
str | ) |
|
|
static |
Tries to decode and then parse.
◆ Remove()
Remove a value with the specified key.
- Parameters
-
| key | The key where it will be removed. |
| val | The value to be removed. |
- Returns
- True if the key exists, false otherwise.
◆ RemoveKey()
| bool Thoth::Http::QueryParams::RemoveKey |
( |
QueryKeyRef |
key | ) |
|
Remove a key and all values associated.
- Parameters
-
| key | The key that it will be removed. |
- Returns
- True if the key exists, false otherwise.
◆ SetIfNull()
If key not exists, set it to value.
- Parameters
-
| key | The key. |
| value | The value to be added. |
- Returns
- True if the key not exists, false otherwise.
◆ Size()
| size_t Thoth::Http::QueryParams::Size |
( |
| ) |
const |
- Returns
- The count of keys.
◆ ValExists()
check if a key=val exists.
- Parameters
-
| key | The key to be checked. |
| val | The key to be checked. |
- Returns
- True if the key exists, false otherwise.
◆ std::formatter< QueryParams >
◆ std::hash< QueryParams >
The documentation for this struct was generated from the following file: