OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::URL::Parse Class Reference

#include <urlparse.hpp>

Public Member Functions

 Parse ()
 
 Parse (const std::string &url, const bool set_default_port=false, const bool loose_validation=false)
 
void validate () const
 
void default_port ()
 
bool port_implied () const
 
bool is_bracketed_host () const
 
std::string bracketed_host () const
 
std::string to_string () const
 
std::string format_components () const
 
std::string port_for_scheme () const
 

Static Public Member Functions

static Parse from_components (const bool https, const std::string &host, const std::string &port, const std::string &uri)
 

Public Attributes

std::string scheme
 
std::string host
 
std::string port
 
std::string uri
 

Private Member Functions

bool is_valid_scheme_char (const char c)
 

Detailed Description

Definition at line 28 of file urlparse.hpp.

Constructor & Destructor Documentation

◆ Parse() [1/2]

openvpn::URL::Parse::Parse ( )
inline

Definition at line 31 of file urlparse.hpp.

◆ Parse() [2/2]

openvpn::URL::Parse::Parse ( const std::string &  url,
const bool  set_default_port = false,
const bool  loose_validation = false 
)
inline

Definition at line 35 of file urlparse.hpp.

Member Function Documentation

◆ bracketed_host()

std::string openvpn::URL::Parse::bracketed_host ( ) const
inline

Definition at line 195 of file urlparse.hpp.

◆ default_port()

void openvpn::URL::Parse::default_port ( )
inline

Definition at line 174 of file urlparse.hpp.

Here is the caller graph for this function:

◆ format_components()

std::string openvpn::URL::Parse::format_components ( ) const
inline

Definition at line 222 of file urlparse.hpp.

◆ from_components()

static Parse openvpn::URL::Parse::from_components ( const bool  https,
const std::string &  host,
const std::string &  port,
const std::string &  uri 
)
inlinestatic

Definition at line 143 of file urlparse.hpp.

Here is the caller graph for this function:

◆ is_bracketed_host()

bool openvpn::URL::Parse::is_bracketed_host ( ) const
inline

Definition at line 190 of file urlparse.hpp.

Here is the caller graph for this function:

◆ is_valid_scheme_char()

bool openvpn::URL::Parse::is_valid_scheme_char ( const char  c)
inlineprivate

Definition at line 255 of file urlparse.hpp.

Here is the caller graph for this function:

◆ port_for_scheme()

std::string openvpn::URL::Parse::port_for_scheme ( ) const
inline

Definition at line 234 of file urlparse.hpp.

◆ port_implied()

bool openvpn::URL::Parse::port_implied ( ) const
inline

Definition at line 185 of file urlparse.hpp.

Here is the caller graph for this function:

◆ to_string()

std::string openvpn::URL::Parse::to_string ( ) const
inline

Definition at line 200 of file urlparse.hpp.

Here is the caller graph for this function:

◆ validate()

void openvpn::URL::Parse::validate ( ) const
inline

Definition at line 159 of file urlparse.hpp.

Here is the caller graph for this function:

Member Data Documentation

◆ host

std::string openvpn::URL::Parse::host

Definition at line 250 of file urlparse.hpp.

◆ port

std::string openvpn::URL::Parse::port

Definition at line 251 of file urlparse.hpp.

◆ scheme

std::string openvpn::URL::Parse::scheme

Definition at line 249 of file urlparse.hpp.

◆ uri

std::string openvpn::URL::Parse::uri

Definition at line 252 of file urlparse.hpp.


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