MySQL 8.0.39
Source Code Documentation
|
representation of HTTP URI. More...
#include <http_request.h>
Classes | |
struct | impl |
Public Member Functions | |
HttpUri () | |
HttpUri (HttpUri &&) | |
~HttpUri () | |
std::string | join () const |
convert URI to string. More... | |
std::string | get_scheme () const |
void | set_scheme (const std::string &scheme) |
std::string | get_userinfo () const |
void | set_userinfo (const std::string &userinfo) |
std::string | get_host () const |
void | set_host (const std::string &host) |
uint16_t | get_port () const |
void | set_port (uint16_t port) const |
std::string | get_path () const |
get path part of the URI. More... | |
void | set_path (const std::string &path) |
std::string | get_fragment () const |
void | set_fragment (const std::string &fragment) |
std::string | get_query () const |
void | set_query (const std::string &query) |
operator bool () const | |
check if URI is valid. More... | |
Static Public Member Functions | |
static std::string | decode (const std::string &uri_str, const bool decode_plus) |
create HttpUri from string. More... | |
static HttpUri | parse (const std::string &uri_str) |
Private Member Functions | |
HttpUri (std::unique_ptr< impl > &&uri) | |
Private Attributes | |
std::unique_ptr< impl > | pImpl_ |
Friends | |
class | HttpRequest |
representation of HTTP URI.
wraps evhttp_uri and exposes a subset of the libevent function-set
HttpUri::HttpUri | ( | ) |
|
default |
|
default |
|
private |
|
static |
create HttpUri from string.
std::string HttpUri::get_fragment | ( | ) | const |
std::string HttpUri::get_host | ( | ) | const |
std::string HttpUri::get_path | ( | ) | const |
get path part of the URI.
uint16_t HttpUri::get_port | ( | ) | const |
std::string HttpUri::get_query | ( | ) | const |
std::string HttpUri::get_scheme | ( | ) | const |
std::string HttpUri::get_userinfo | ( | ) | const |
std::string HttpUri::join | ( | ) | const |
convert URI to string.
HttpUri::operator bool | ( | ) | const |
check if URI is valid.
|
static |
void HttpUri::set_fragment | ( | const std::string & | fragment | ) |
void HttpUri::set_host | ( | const std::string & | host | ) |
void HttpUri::set_path | ( | const std::string & | path | ) |
void HttpUri::set_port | ( | uint16_t | port | ) | const |
void HttpUri::set_query | ( | const std::string & | query | ) |
void HttpUri::set_scheme | ( | const std::string & | scheme | ) |
void HttpUri::set_userinfo | ( | const std::string & | userinfo | ) |
|
friend |
|
private |