|
Upa URL C++ library
A WHATWG URL Standard implementation
|
URLPatternInit struct. More...
#include <upa/urlpattern.h>
Public Member Functions | |
| constexpr bool | operator== (const urlpattern_init &other) const |
| std::optional< std::string_view > | get (std::string_view name) const |
| Get value of member by name. | |
| template<typename T, std::enable_if_t< std::is_assignable_v< std::string, T >, int > = 0> | |
| void | set (std::string_view name, T &&value) |
| Set value of member by name. | |
Public Attributes | |
| std::optional< std::string > | protocol |
| std::optional< std::string > | username |
| std::optional< std::string > | password |
| std::optional< std::string > | hostname |
| std::optional< std::string > | port |
| std::optional< std::string > | pathname |
| std::optional< std::string > | search |
| std::optional< std::string > | hash |
| std::optional< std::string > | base_url |
URLPatternInit struct.
This struct represents the URLPatternInit dictionary as specified in URL Pattern specification.
Definition at line 159 of file urlpattern.h.
|
inlinenodiscard |
Get value of member by name.
| name | Name of the member to get |
Definition at line 184 of file urlpattern.h.
|
inlineconstexpr |
Definition at line 173 of file urlpattern.h.
|
inline |
Set value of member by name.
| name | Name of the member to set |
| value | Value to set, must be assignable to std::string |
Definition at line 194 of file urlpattern.h.
| std::optional<std::string> upa::urlpattern_init::base_url |
Definition at line 168 of file urlpattern.h.
| std::optional<std::string> upa::urlpattern_init::hash |
Definition at line 167 of file urlpattern.h.
| std::optional<std::string> upa::urlpattern_init::hostname |
Definition at line 163 of file urlpattern.h.
| std::optional<std::string> upa::urlpattern_init::password |
Definition at line 162 of file urlpattern.h.
| std::optional<std::string> upa::urlpattern_init::pathname |
Definition at line 165 of file urlpattern.h.
| std::optional<std::string> upa::urlpattern_init::port |
Definition at line 164 of file urlpattern.h.
| std::optional<std::string> upa::urlpattern_init::protocol |
Definition at line 160 of file urlpattern.h.
| std::optional<std::string> upa::urlpattern_init::search |
Definition at line 166 of file urlpattern.h.
| std::optional<std::string> upa::urlpattern_init::username |
Definition at line 161 of file urlpattern.h.