header_utils
Loading...
Searching...
No Matches
ghassanpl::decomposed_uri Struct Reference

Holds the constituents of a URI. More...

#include <uri.h>

Public Member Functions

std::vector< std::string > normalized_path () const noexcept
 Returns the path normalized by applying any "." or ".." elements.
bool empty () const noexcept
uri_expected< std::string > url_origin () const
 [Unimplemented]
uri_expected< std::string > url_site () const
 [Unimplemented]
uri_expected< std::pair< std::string, std::string > > url_user_info () const
 [Unimplemented]
uri_expected< struct url_host > url_host () const
 [Unimplemented]
uri_expected< struct url_blob > url_blob () const
 [Unimplemented]
bool same_origin (decomposed_uri const &other) const noexcept
 [Unimplemented]
bool same_site (decomposed_uri const &other) const noexcept
 [Unimplemented]
bool operator== (decomposed_uri const &other) const noexcept

Public Attributes

std::string scheme
std::string authority
std::string user_info
std::string host
std::string port
std::string path
std::vector< std::string > path_elements
std::string query
std::vector< std::pair< std::string, std::string > > query_elements
std::string fragment
known_uri_scheme const * known_scheme
enum_flags< uri_decompose_flags > decompose_flags
bool canonical_form

Detailed Description

Holds the constituents of a URI.

Definition at line 103 of file uri.h.

Member Function Documentation

◆ empty()

bool ghassanpl::decomposed_uri::empty ( ) const
inlinenoexcept

Definition at line 127 of file uri.h.

◆ normalized_path()

std::vector< std::string > ghassanpl::decomposed_uri::normalized_path ( ) const
noexcept

Returns the path normalized by applying any "." or ".." elements.

Definition at line 335 of file uri_impl.h.

◆ operator==()

bool ghassanpl::decomposed_uri::operator== ( decomposed_uri const & other) const
noexcept

Definition at line 323 of file uri_impl.h.

◆ url_origin()

uri_expected< std::string > ghassanpl::decomposed_uri::url_origin ( ) const

◆ url_site()

uri_expected< std::string > ghassanpl::decomposed_uri::url_site ( ) const

Member Data Documentation

◆ authority

std::string ghassanpl::decomposed_uri::authority

Definition at line 109 of file uri.h.

◆ canonical_form

bool ghassanpl::decomposed_uri::canonical_form

Definition at line 125 of file uri.h.

◆ decompose_flags

enum_flags<uri_decompose_flags> ghassanpl::decomposed_uri::decompose_flags

Definition at line 123 of file uri.h.

◆ fragment

std::string ghassanpl::decomposed_uri::fragment

Definition at line 119 of file uri.h.

◆ host

std::string ghassanpl::decomposed_uri::host

Definition at line 111 of file uri.h.

◆ known_scheme

known_uri_scheme const* ghassanpl::decomposed_uri::known_scheme

Definition at line 121 of file uri.h.

◆ path

std::string ghassanpl::decomposed_uri::path

Definition at line 113 of file uri.h.

◆ path_elements

std::vector<std::string> ghassanpl::decomposed_uri::path_elements

Definition at line 114 of file uri.h.

◆ port

std::string ghassanpl::decomposed_uri::port

Definition at line 112 of file uri.h.

◆ query

std::string ghassanpl::decomposed_uri::query

Definition at line 117 of file uri.h.

◆ query_elements

std::vector<std::pair<std::string, std::string> > ghassanpl::decomposed_uri::query_elements

Definition at line 118 of file uri.h.

◆ scheme

std::string ghassanpl::decomposed_uri::scheme

Definition at line 108 of file uri.h.

◆ user_info

std::string ghassanpl::decomposed_uri::user_info

Definition at line 110 of file uri.h.