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

Holds the constituents of a URI. More...

#include <uri.h>

Public Member Functions

 decomposed_uri (decomposed_uri const &) noexcept=default
 
 decomposed_uri (decomposed_uri &&) noexcept=default
 
decomposed_urioperator= (decomposed_uri const &) noexcept=default
 
decomposed_urioperator= (decomposed_uri &&) noexcept=default
 
std::vector< std::string > normalized_path () const noexcept
 Returns the path normalized by applying any "." or ".." elements.
 
bool empty () const noexcept
 
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
 
bool canonical_form
 

Detailed Description

Holds the constituents of a URI.

Definition at line 82 of file uri.h.

Member Function Documentation

◆ empty()

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

Definition at line 105 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 310 of file uri_impl.h.

◆ operator==()

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

Definition at line 298 of file uri_impl.h.

Member Data Documentation

◆ authority

std::string ghassanpl::decomposed_uri::authority

Definition at line 91 of file uri.h.

◆ canonical_form

bool ghassanpl::decomposed_uri::canonical_form

Definition at line 103 of file uri.h.

◆ fragment

std::string ghassanpl::decomposed_uri::fragment

Definition at line 101 of file uri.h.

◆ host

std::string ghassanpl::decomposed_uri::host

Definition at line 93 of file uri.h.

◆ path

std::string ghassanpl::decomposed_uri::path

Definition at line 95 of file uri.h.

◆ path_elements

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

Definition at line 96 of file uri.h.

◆ port

std::string ghassanpl::decomposed_uri::port

Definition at line 94 of file uri.h.

◆ query

std::string ghassanpl::decomposed_uri::query

Definition at line 99 of file uri.h.

◆ query_elements

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

Definition at line 100 of file uri.h.

◆ scheme

std::string ghassanpl::decomposed_uri::scheme

Definition at line 90 of file uri.h.

◆ user_info

std::string ghassanpl::decomposed_uri::user_info

Definition at line 92 of file uri.h.