NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.3: NDN, CCN, CCNx, content centric networks
API Documentation
websocketpp::uri Class Reference

#include <uri.hpp>

Public Member Functions

 uri (std::string const &uri_string)
 
 uri (bool secure, std::string const &host, uint16_t port, std::string const &resource)
 
 uri (bool secure, std::string const &host, std::string const &resource)
 
 uri (bool secure, std::string const &host, std::string const &port, std::string const &resource)
 
 uri (std::string const &scheme, std::string const &host, uint16_t port, std::string const &resource)
 
 uri (std::string scheme, std::string const &host, std::string const &resource)
 
 uri (std::string const &scheme, std::string const &host, std::string const &port, std::string const &resource)
 
bool get_valid () const
 
bool get_secure () const
 
std::string const & get_scheme () const
 
std::string const & get_host () const
 
std::string get_host_port () const
 
std::string get_authority () const
 
uint16_t get_port () const
 
std::string get_port_str () const
 
std::string const & get_resource () const
 
std::string str () const
 
std::string get_query () const
 Return the query portion. More...
 

Detailed Description

Definition at line 48 of file uri.hpp.

Constructor & Destructor Documentation

websocketpp::uri::uri ( std::string const &  uri_string)
inlineexplicit

Definition at line 50 of file uri.hpp.

websocketpp::uri::uri ( bool  secure,
std::string const &  host,
uint16_t  port,
std::string const &  resource 
)
inline

Definition at line 169 of file uri.hpp.

websocketpp::uri::uri ( bool  secure,
std::string const &  host,
std::string const &  resource 
)
inline

Definition at line 178 of file uri.hpp.

websocketpp::uri::uri ( bool  secure,
std::string const &  host,
std::string const &  port,
std::string const &  resource 
)
inline

Definition at line 186 of file uri.hpp.

websocketpp::uri::uri ( std::string const &  scheme,
std::string const &  host,
uint16_t  port,
std::string const &  resource 
)
inline

Definition at line 198 of file uri.hpp.

websocketpp::uri::uri ( std::string  scheme,
std::string const &  host,
std::string const &  resource 
)
inline

Definition at line 207 of file uri.hpp.

websocketpp::uri::uri ( std::string const &  scheme,
std::string const &  host,
std::string const &  port,
std::string const &  resource 
)
inline

Definition at line 215 of file uri.hpp.

Member Function Documentation

bool websocketpp::uri::get_valid ( ) const
inline

Definition at line 227 of file uri.hpp.

Referenced by BOOST_AUTO_TEST_CASE().

bool websocketpp::uri::get_secure ( ) const
inline

Definition at line 231 of file uri.hpp.

Referenced by BOOST_AUTO_TEST_CASE().

std::string const& websocketpp::uri::get_scheme ( ) const
inline

Definition at line 235 of file uri.hpp.

Referenced by BOOST_AUTO_TEST_CASE().

std::string const& websocketpp::uri::get_host ( ) const
inline

Definition at line 239 of file uri.hpp.

Referenced by BOOST_AUTO_TEST_CASE().

std::string websocketpp::uri::get_host_port ( ) const
inline

Definition at line 243 of file uri.hpp.

std::string websocketpp::uri::get_authority ( ) const
inline

Definition at line 253 of file uri.hpp.

uint16_t websocketpp::uri::get_port ( ) const
inline

Definition at line 259 of file uri.hpp.

Referenced by BOOST_AUTO_TEST_CASE().

std::string websocketpp::uri::get_port_str ( ) const
inline

Definition at line 263 of file uri.hpp.

std::string const& websocketpp::uri::get_resource ( ) const
inline

Definition at line 269 of file uri.hpp.

Referenced by BOOST_AUTO_TEST_CASE().

std::string websocketpp::uri::str ( ) const
inline

Definition at line 273 of file uri.hpp.

std::string websocketpp::uri::get_query ( ) const
inline

Return the query portion.

Returns the query portion (after the ?) of the URI or an empty string if there is none.

Returns
query portion of the URI.

Definition at line 293 of file uri.hpp.

References websocketpp::http::status_code::found, websocketpp::error::invalid_port, and websocketpp::error::make_error_code().

Referenced by BOOST_AUTO_TEST_CASE().


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