Lines Matching refs:proxy
389 const auto &proxy = get_config()->downstream_http_proxy;
390 if (!proxy.host.empty() && state_ == Http2SessionState::DISCONNECTED) {
392 SSLOG(INFO, this) << "Connecting to the proxy " << proxy.host << ":"
393 << proxy.port;
396 conn_.fd = util::create_nonblock_socket(proxy.addr.su.storage.ss_family);
400 SSLOG(WARN, this) << "Backend proxy socket() failed; addr="
401 << util::to_numeric_addr(&proxy.addr)
408 rv = connect(conn_.fd, &proxy.addr.su.sa, proxy.addr.len);
411 SSLOG(WARN, this) << "Backend proxy connect() failed; addr="
412 << util::to_numeric_addr(&proxy.addr)
420 raddr_ = &proxy.addr;
513 // connected to the proxy using conn_.fd and tunnel has been
551 // Without TLS and proxy.
579 // Without TLS and proxy.
613 // We have been already connected when no TLS and proxy is used.
692 SSLOG(INFO, this) << "Connected to the proxy";
704 const auto &proxy = get_config()->downstream_http_proxy;
705 if (!proxy.userinfo.empty()) {
707 req += base64::encode(std::begin(proxy.userinfo), std::end(proxy.userinfo));
712 SSLOG(INFO, this) << "HTTP proxy request headers\n" << req;
2206 const auto &proxy = get_config()->downstream_http_proxy;
2207 return !proxy.host.empty();