26#ifndef ROUTER_SRC_HTTP_INCLUDE_HTTP_BASE_URI_H_
27#define ROUTER_SRC_HTTP_INCLUDE_HTTP_BASE_URI_H_
41 Uri(
const std::string &uri);
49 virtual std::string
join()
const;
50 virtual std::string join_path()
const;
52 virtual std::string get_scheme()
const;
53 virtual void set_scheme(
const std::string &scheme);
55 virtual std::string get_userinfo()
const;
56 virtual void set_userinfo(
const std::string &userinfo);
58 virtual std::string get_host()
const;
59 virtual void set_host(
const std::string &
host);
62 virtual int32_t get_port()
const;
63 virtual void set_port(int32_t
port);
67 virtual std::string get_path()
const;
68 virtual void set_path(
const std::string &
path);
70 virtual std::string get_fragment()
const;
71 virtual void set_fragment(
const std::string &fragment);
73 virtual std::string get_query()
const;
74 virtual bool set_query(
const std::string &
query);
79 operator bool()
const;
81 Uri &operator=(
Uri &&other);
82 Uri &operator=(
const Uri &other);
102 const std::string &uri_path);
mysqlrouter::URI uri_impl_
Definition: uri.h:85
Parse and create URIs according to RFC3986.
Definition: uri.h:70
#define HTTP_COMMON_EXPORT
Definition: http_common_export.h:15
static char * query
Definition: myisam_ftdump.cc:47
const char * host
Definition: mysqladmin.cc:65
static char * path
Definition: mysqldump.cc:149
HTTP_COMMON_EXPORT std::string http_uri_path_canonicalize(const std::string &uri_path)
canonicalize a URI path.
Definition: uri.cc:182
Request::Uri Uri
Definition: request.cc:37
Definition: connection.h:56
std::string join(Container cont, const std::string &delim)
join elements of an container into a string separated by a delimiter.
Definition: string.h:151
required uint64 port
Definition: replication_asynchronous_connection_failover.proto:33