Lines Matching refs:host
38 std::string host; member
54 parameters->host = std::string(args.arg1).substr(strlen(HTTP_PREFIX)); in parseUrl()
55 const auto first_slash = parameters->host.find_first_of('/'); in parseUrl()
57 parameters->path = parameters->host.substr(first_slash); in parseUrl()
58 parameters->host.erase(first_slash); in parseUrl()
61 if (parameters->host.size() == 0) { in parseUrl()
66 if (parameters->host[0] == '[') { in parseUrl()
67 const auto closing_bracket = parameters->host.find_first_of(']'); in parseUrl()
72 parameters->hostname = parameters->host.substr(1, closing_bracket - 1); in parseUrl()
75 if (colon_port < parameters->host.size()) { in parseUrl()
76 if (parameters->host[colon_port] != ':') { in parseUrl()
80 parameters->port = parameters->host.substr(closing_bracket + 2); in parseUrl()
83 const auto first_colon = parameters->host.find_first_of(':'); in parseUrl()
85 parameters->port = parameters->host.substr(first_colon + 1); in parseUrl()
86 parameters->hostname = parameters->host.substr(0, first_colon); in parseUrl()
88 parameters->hostname = parameters->host; in parseUrl()
188 parameters.path.c_str(), parameters.host.c_str())); in doHttpQuery()