#include "net/base/proxy_string_util.h"
#include <string>
#include <string_view>
#include "base/notreached.h"
#include "base/strings/strcat.h"
#include "base/strings/string_util.h"
#include "net/base/proxy_server.h"
#include "net/base/url_util.h"
#include "net/http/http_util.h"
#include "url/third_party/mozilla/url_parse.h"
namespace net {
namespace {
ProxyServer::Scheme GetSchemeFromPacTypeInternal(std::string_view type) { … }
std::string ConstructHostPortString(std::string_view hostname, uint16_t port) { … }
std::tuple<std::string_view, std::string_view>
PacResultElementToSchemeAndHostPort(std::string_view pac_result_element) { … }
}
ProxyChain PacResultElementToProxyChain(std::string_view pac_result_element) { … }
ProxyServer PacResultElementToProxyServer(std::string_view pac_result_element) { … }
std::string ProxyServerToPacResultElement(const ProxyServer& proxy_server) { … }
ProxyChain ProxyUriToProxyChain(std::string_view uri,
ProxyServer::Scheme default_scheme) { … }
ProxyServer ProxyUriToProxyServer(std::string_view uri,
ProxyServer::Scheme default_scheme) { … }
std::string ProxyServerToProxyUri(const ProxyServer& proxy_server) { … }
ProxyServer ProxySchemeHostAndPortToProxyServer(
ProxyServer::Scheme scheme,
std::string_view host_and_port) { … }
ProxyServer::Scheme GetSchemeFromUriScheme(std::string_view scheme) { … }
}