Class to parse an URI string.
More...
#include <http_util.h>
eg) http://www.ifunfactory.com:8080/hello/bye.php?a=1&b=2 protocol() => http host => www.fiunfactory.com port => 8080 path => /hello/bye.php query_string => "a=1&b=2" eg) localhost:80/path/to/file protocol() => "" host => localhost port => 80 path => /path/to/file query_string => ""
◆ Uri()
fun::http::Uri::Uri |
( |
const string & |
uri_string | ) |
|
|
explicit |
◆ host()
const string& fun::http::Uri::host |
( |
| ) |
const |
◆ Parse()
bool fun::http::Uri::Parse |
( |
const string & |
uri_string | ) |
|
- Returns
- true if succeeded. false, otherwise.
◆ path()
const string& fun::http::Uri::path |
( |
| ) |
const |
◆ port()
uint16_t fun::http::Uri::port |
( |
| ) |
const |
- Returns
- port number in uint16_t.
◆ protocol()
const string& fun::http::Uri::protocol |
( |
| ) |
const |
- Returns
- protocol protocol string
◆ query_string()
const string& fun::http::Uri::query_string |
( |
| ) |
const |
◆ raw()
const string& fun::http::Uri::raw |
( |
| ) |
const |