Home | History | Annotate | Download | only in proxy

Lines Matching refs:begin

22     std::string::const_iterator begin,
24 if (LowerCaseEqualsASCII(begin, end, "proxy"))
26 if (LowerCaseEqualsASCII(begin, end, "socks")) {
32 if (LowerCaseEqualsASCII(begin, end, "socks4"))
34 if (LowerCaseEqualsASCII(begin, end, "socks5"))
36 if (LowerCaseEqualsASCII(begin, end, "direct"))
38 if (LowerCaseEqualsASCII(begin, end, "https"))
47 ProxyServer::Scheme GetSchemeFromURIInternal(std::string::const_iterator begin,
49 if (LowerCaseEqualsASCII(begin, end, "http"))
51 if (LowerCaseEqualsASCII(begin, end, "socks4"))
53 if (LowerCaseEqualsASCII(begin, end, "socks"))
55 if (LowerCaseEqualsASCII(begin, end, "socks5"))
57 if (LowerCaseEqualsASCII(begin, end, "direct"))
59 if (LowerCaseEqualsASCII(begin, end, "https"))
95 return FromURI(uri.begin(), uri.end(), default_scheme);
99 ProxyServer ProxyServer::FromURI(std::string::const_iterator begin,
106 HttpUtil::TrimLWS(&begin, &end);
109 std::string::const_iterator colon = std::find(begin, end, ':');
114 scheme = GetSchemeFromURIInternal(begin, colon);
115 begin = colon + 3; // Skip past the "://"
119 return FromSchemeHostAndPort(scheme, begin, end);
144 return FromPacString(pac_string.begin(), pac_string.end());
148 ProxyServer ProxyServer::FromPacString(std::string::const_iterator begin,
151 HttpUtil::TrimLWS(&begin, &end);
158 for (space = begin; space != end; ++space) {
165 Scheme scheme = GetSchemeFromPacTypeInternal(begin, space);
209 return GetSchemeFromURIInternal(scheme.begin(), scheme.end());
215 std::string::const_iterator begin,
219 HttpUtil::TrimLWS(&begin, &end);
221 if (scheme == SCHEME_DIRECT && begin != end)
230 bool ok = net::ParseHostAndPort(begin, end, &host, &port);