Home | History | Annotate | Download | only in proxy

Lines Matching refs:scheme

25   enum Scheme {
40 ProxyServer(Scheme scheme, const std::string& host, int port)
41 : scheme_(scheme), host_(host), port_(port) {}
45 // Gets the proxy's scheme (i.e. SOCKS4, SOCKS5, HTTP}
46 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 // "socks4://foopy" {scheme=SOCKS4, host="foopy", port=1080}
82 // "socks5://foopy" {scheme=SOCKS5, host="foopy", port=1080}
83 // "http://foopy:17" {scheme=HTTP, host="foopy", port=17}
84 // "direct://" {scheme=DIRECT}
86 static ProxyServer FromURI(const std::string& uri, Scheme default_scheme);
89 Scheme default_scheme);
97 // chosen scheme (80 for "http", 1080 for "socks").
102 // "PROXY foopy:19" {scheme=HTTP, host="foopy", port=19}
103 // "DIRECT" {scheme=DIRECT}
104 // "SOCKS5 foopy" {scheme=SOCKS5, host="foopy", port=1080}
121 static ProxyServer FromDictionary(Scheme scheme,
132 // scheme. Returns -1 if unknown.
133 static int GetDefaultPortForScheme(Scheme scheme);
142 // Create a ProxyServer given a scheme, and host/port string. If parsing the
145 Scheme scheme,
149 Scheme scheme_;