proxydialer

package
v0.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Copied from google.golang.org/grpc/proxy.go with modifications to allow testing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProxyDialer

func NewProxyDialer(proxyFunc httpProxyFunc) func(context.Context, string) (net.Conn, error)

newProxyDialer returns a dialer that connects to proxy first if necessary. The returned dialer checks if a proxy is necessary, dial to the proxy with the provided dialer, does HTTP CONNECT handshake and returns the connection.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL