Class that represents a URL.
More...
#include <http.hpp>
|
| | 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...
|
| |
Class that represents a URL.
Common URL format: "scheme://host:port/path?query"
◆ Uri() [1/4]
◆ Uri() [2/4]
| edjx::http::Uri::Uri |
( |
const std::string & |
url | ) |
|
|
inline |
Construct URL from a string.
- Parameters
-
| url | URL 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
-
| url | URL 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
-
| url | URL string (e.g., "scheme://host:port/path?query") represented as ASCII characters |
◆ 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: