Home | History | Annotate | Download | only in proxy

Lines Matching refs:Scheme

27   enum Scheme {
41 ProxyServer(Scheme scheme, const HostPortPair& host_port_pair);
45 // Gets the proxy's scheme (i.e. SOCKS4, SOCKS5, HTTP)
46 Scheme scheme() const { return scheme_; }
65 // [<scheme>"://"]<server>[":"<port>]
67 // Both <scheme> and <port> are optional. If <scheme> is omitted, it will be
69 // the default port for the chosen scheme (80 for "http", 1080 for "socks").
74 // "foopy" {scheme=HTTP, host="foopy", port=80}
75 // "socks://foopy" {scheme=SOCKS5, host="foopy", port=1080}
76 // "socks4://foopy" {scheme=SOCKS4, host="foopy", port=1080}
77 // "socks5://foopy" {scheme=SOCKS5, host="foopy", port=1080}
78 // "http://foopy:17" {scheme=HTTP, host="foopy", port=17}
79 // "https://foopy:17" {scheme=HTTPS, host="foopy", port=17}
80 // "direct://" {scheme=DIRECT}
82 static ProxyServer FromURI(const std::string& uri, Scheme default_scheme);
85 Scheme default_scheme);
93 // chosen scheme (80 for "http", 1080 for "socks").
98 // "PROXY foopy:19" {scheme=HTTP, host="foopy", port=19}
99 // "DIRECT" {scheme=DIRECT}
100 // "SOCKS5 foopy" {scheme=SOCKS5, host="foopy", port=1080}
101 // "HTTPS foopy:123" {scheme=HTTPS, host="foopy", port=123}
118 static ProxyServer FromDictionary(Scheme scheme,
128 // scheme. Returns -1 if unknown.
129 static int GetDefaultPortForScheme(Scheme scheme);
131 // Parses the proxy scheme from a URL-like representation, to a
132 // ProxyServer::Scheme. This corresponds with the values used in
134 // |scheme| can be one of http, https, socks, socks4, socks5, direct.
135 static Scheme GetSchemeFromURI(const std::string& scheme);
150 // Creates a ProxyServer given a scheme, and host/port string. If parsing the
153 Scheme scheme,
157 Scheme scheme_;