Files
textmate/Frameworks/network/src/proxy.h
Allan Odgaard f8d71729fe Add SOCKS proxy support
This is for updating bundles and itself plus posting crash reports.

It now also ignores unknown proxy types.
2013-05-26 10:24:35 +08:00

22 lines
644 B
C++

#ifndef PROXY_H_S8ZWZPU8
#define PROXY_H_S8ZWZPU8
#include <oak/misc.h>
struct proxy_settings_t
{
proxy_settings_t (bool enabled = false, std::string const& server = NULL_STR, long port = 0, std::string const& user = NULL_STR, std::string const& password = NULL_STR) : enabled(enabled), server(server), port(port), user(user), password(password) { }
explicit operator bool () const { return enabled; }
bool enabled;
bool socks = false;
std::string server;
long port;
std::string user;
std::string password;
};
PUBLIC proxy_settings_t get_proxy_settings (std::string const& url);
#endif /* end of include guard: PROXY_H_S8ZWZPU8 */