Upa URL C++ library
A WHATWG URL Standard implementation
Loading...
Searching...
No Matches
upa::urlpattern_result Struct Reference

The result of executing the URL pattern when there is a match. More...

#include <upa/urlpattern.h>

Inheritance diagram for upa::urlpattern_result:
upa::urlpattern_result_and_inputs

Public Attributes

urlpattern_component_result protocol
urlpattern_component_result username
urlpattern_component_result password
urlpattern_component_result hostname
urlpattern_component_result port
urlpattern_component_result pathname
urlpattern_component_result search
urlpattern_component_result hash

Detailed Description

The result of executing the URL pattern when there is a match.

Matched group values are contained in per-component group objects within the result object; e.g. res->pathname.groups["id"]. This struct does not has an inputs member. If you need it, then use upa::urlpattern_result_and_inputs struct.

This struct is used as the default return type of the upa::urlpattern's exec function.

Definition at line 562 of file urlpattern.h.

Member Data Documentation

◆ hash

urlpattern_component_result upa::urlpattern_result::hash

Definition at line 570 of file urlpattern.h.

◆ hostname

urlpattern_component_result upa::urlpattern_result::hostname

Definition at line 566 of file urlpattern.h.

◆ password

urlpattern_component_result upa::urlpattern_result::password

Definition at line 565 of file urlpattern.h.

◆ pathname

urlpattern_component_result upa::urlpattern_result::pathname

Definition at line 568 of file urlpattern.h.

◆ port

urlpattern_component_result upa::urlpattern_result::port

Definition at line 567 of file urlpattern.h.

◆ protocol

urlpattern_component_result upa::urlpattern_result::protocol

Definition at line 563 of file urlpattern.h.

◆ search

urlpattern_component_result upa::urlpattern_result::search

Definition at line 569 of file urlpattern.h.

◆ username

urlpattern_component_result upa::urlpattern_result::username

Definition at line 564 of file urlpattern.h.


The documentation for this struct was generated from the following file: