2 #include "../acl_cpp_define.hpp" 3 #include "../stdlib/string.hpp" 20 static bool get_addr(
const char* url,
char* addr,
size_t size);
30 static bool get_addr(
const char* url,
char* domain,
size_t size,
31 unsigned short* port);
44 static bool parse_url(
const char* url,
string& domain,
45 unsigned short* port,
string& url_path,
string& url_params);
53 bool parse(
const char* url);
69 return domain_.c_str();
85 return url_path_.c_str();
93 return url_params_.c_str();
104 unsigned short port_;
108 bool parse_url_part(
const char* url);
109 const char* parse_domain(
const char* url);
const char * get_url_params(void) const
const char * get_proto(void) const
unsigned short get_port(void) const
const char * get_url_path(void) const
const char * get_domain(void) const