Parameters container for query strings parameters.
More...
#include <uri_helpers.hpp>
Parameters container for query strings parameters.
- Examples
- sample/try_parse_query_string/main.cpp.
Definition at line 42 of file uri_helpers.hpp.
◆ parameters_container_t
◆ query_string_params_t() [1/4]
restinio::query_string_params_t::query_string_params_t |
( |
std::unique_ptr< char[] > |
data_buffer, |
|
|
parameters_container_t |
parameters |
|
) |
| |
|
inline |
Constructor for the case when query string empty of contains a set of key-value pairs.
Definition at line 49 of file uri_helpers.hpp.
◆ query_string_params_t() [2/4]
restinio::query_string_params_t::query_string_params_t |
( |
std::unique_ptr< char[] > |
data_buffer, |
|
|
optional_t< string_view_t > |
tag |
|
) |
| |
|
inline |
Constructor for the case when query string contains only tag (web beacon).
Definition at line 58 of file uri_helpers.hpp.
◆ query_string_params_t() [3/4]
◆ query_string_params_t() [4/4]
◆ begin()
parameters_container_t::const_iterator restinio::query_string_params_t::begin |
( |
| ) |
const |
|
inlinenoexcept |
◆ empty()
bool restinio::query_string_params_t::empty |
( |
| ) |
const |
|
inlinenoexcept |
◆ end()
parameters_container_t::const_iterator restinio::query_string_params_t::end |
( |
| ) |
const |
|
inlinenoexcept |
◆ find_parameter()
parameters_container_t::const_iterator restinio::query_string_params_t::find_parameter |
( |
string_view_t |
key | ) |
const |
|
inlineprivatenoexcept |
◆ find_parameter_with_check()
parameters_container_t::const_reference restinio::query_string_params_t::find_parameter_with_check |
( |
string_view_t |
key | ) |
const |
|
inlineprivate |
◆ get_param()
Get the value of a parameter if it exists.
- Since
- v.0.4.4
Definition at line 88 of file uri_helpers.hpp.
◆ has()
bool restinio::query_string_params_t::has |
( |
string_view_t |
key | ) |
const |
|
inlinenoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ operator[]()
◆ size()
auto restinio::query_string_params_t::size |
( |
| ) |
const |
|
inlinenoexcept |
◆ tag()
auto restinio::query_string_params_t::tag |
( |
| ) |
const |
|
inlinenoexcept |
Get the tag (web beacon) part.
A value of "tag" (also known as web beacon) is available only if URI looks like that:
http://example.com/resource?value
In that case tag will contain value
. For URI with different formats tag() will return empty optional.
- Since
- v.0.4.9
Definition at line 131 of file uri_helpers.hpp.
◆ m_data_buffer
std::unique_ptr< char[] > restinio::query_string_params_t::m_data_buffer |
|
private |
Shared buffer for string_view of named parameterts names.
Definition at line 163 of file uri_helpers.hpp.
◆ m_parameters
◆ m_tag
The documentation for this class was generated from the following file: