Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (27 sloc) 0.952 kb
#ifndef PROXYPARSER_H
#define PROXYPARSER_H
#include <string>
#include <vector>
using namespace std;
class ProxySetting
{
public:
string protocol;
string domain;
unsigned int port;
};
class ProxyParser
{
public:
static bool getProxySettingForUrl(string url, ProxySetting & proxy);
static bool getStaticProxySettingForUrl(string url, wstring proxylist, wstring proxybypass, ProxySetting & proxy);
static void getProxySettingForProtocolFromProxyList(string protocol, string proxyList, ProxySetting & proxy);
static void getProxySettingForProxyListItem(string proxyItem, ProxySetting & proxy);
static bool testHostForBypassList(string host, wstring wproxybypass);
static bool testHostForBypass(string host, string bypass);
static bool testDomainForBypass(string domain, string bypass);
static bool testIpForBypass(string ip, string bypass);
static vector<string> getIPForHost(string host);
static bool isDomain(string host);
};
#endif
Jump to Line
Something went wrong with that request. Please try again.