Lines Matching refs:scheme
27 enum Scheme {
44 ProxyServer(Scheme scheme, const HostPortPair& host_port_pair);
48 // Gets the proxy's scheme (i.e. SOCKS4, SOCKS5, HTTP)
49 Scheme scheme() const { return scheme_; }
71 // [<scheme>"://"]<server>[":"<port>]
73 // Both <scheme> and <port> are optional. If <scheme> is omitted, it will be
75 // the default port for the chosen scheme (80 for "http", 1080 for "socks").
80 // "foopy" {scheme=HTTP, host="foopy", port=80}
81 // "socks://foopy" {scheme=SOCKS5, host="foopy", port=1080}
82 // "socks4://foopy" {scheme=SOCKS4, host="foopy", port=1080}
83 // "socks5://foopy" {scheme=SOCKS5, host="foopy", port=1080}
84 // "http://foopy:17" {scheme=HTTP, host="foopy", port=17}
85 // "https://foopy:17" {scheme=HTTPS, host="foopy", port=17}
86 // "quic://foopy:17" {scheme=QUIC, host="foopy", port=17}
87 // "direct://" {scheme=DIRECT}
89 static ProxyServer FromURI(const std::string& uri, Scheme default_scheme);
92 Scheme default_scheme);
100 // chosen scheme (80 for "http", 1080 for "socks").
105 // "PROXY foopy:19" {scheme=HTTP, host="foopy", port=19}
106 // "DIRECT" {scheme=DIRECT}
107 // "SOCKS5 foopy" {scheme=SOCKS5, host="foopy", port=1080}
108 // "HTTPS foopy:123" {scheme=HTTPS, host="foopy", port=123}
109 // "QUIC foopy:123" {scheme=QUIC, host="foopy", port=123}
126 static ProxyServer FromDictionary(Scheme scheme,
136 // scheme. Returns -1 if unknown.
137 static int GetDefaultPortForScheme(Scheme scheme);
139 // Parses the proxy scheme from a URL-like representation, to a
140 // ProxyServer::Scheme. This corresponds with the values used in
142 // |scheme| can be one of http, https, socks, socks4, socks5, direct.
143 static Scheme GetSchemeFromURI(const std::string& scheme);
166 // Creates a ProxyServer given a scheme, and host/port string. If parsing the
169 Scheme scheme,
173 Scheme scheme_;