C++ edjLibrary SDK
Loading...
Searching...
No Matches
Public Member Functions | List of all members
edjx::http::Uri Class Reference

Class that represents a URL. More...

#include <http.hpp>

Public Member Functions

 Uri ()
 Default constructor. More...
 
 Uri (const std::string &url)
 Construct URL from a string. More...
 
 Uri (const char *url)
 Construct URL from a C string. More...
 
 Uri (const std::vector< uint8_t > &url)
 Construct URL from a vector of ASCII characters. More...
 
std::string as_string () const
 Returns URL as a string. More...
 

Detailed Description

Class that represents a URL.

Common URL format: "scheme://host:port/path?query"

Constructor & Destructor Documentation

◆ Uri() [1/4]

edjx::http::Uri::Uri ( )
inline

Default constructor.

◆ Uri() [2/4]

edjx::http::Uri::Uri ( const std::string &  url)
inline

Construct URL from a string.

Parameters
urlURL string (e.g., "scheme://host:port/path?query")

◆ Uri() [3/4]

edjx::http::Uri::Uri ( const char *  url)
inline

Construct URL from a C string.

Parameters
urlURL string (e.g., "scheme://host:port/path?query")

◆ Uri() [4/4]

edjx::http::Uri::Uri ( const std::vector< uint8_t > &  url)
inline

Construct URL from a vector of ASCII characters.

Parameters
urlURL string (e.g., "scheme://host:port/path?query") represented as ASCII characters

Member Function Documentation

◆ as_string()

std::string edjx::http::Uri::as_string ( ) const
inline

Returns URL as a string.

Returns
URL ("scheme://host:port/path?query")

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