Registry / networking / mwitkow-go-http-dialer

mwitkow-go-http-dialer

JSON →
library0.0.0-20161116154839-378f744fb2b8gogounverified

Provides an HTTP(S) CONNECT tunneling net.Dialer for establishing TCP connections through a proxy.

go get github.com/mwitkow/go-http-dialer
INSTALL
IMPORT
SIG · MWITKOW-GO-HTTP-DI
M
mwitkow-go-http-dialer
networkinggov0.0.0-20161116154839-378f744fb2b8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

http_dialer
github.com/mwitkow/go-http-dialer

Creates an HTTP client that tunnels through a proxy

package main import ( "fmt" "net/http" "github.com/mwitkow/go-http-dialer" ) func main() { dialer := http_dialer.New("http://proxy.example.com:8080") client := &http.Client{Transport: &http.Transport{Dial: dialer.Dial}} resp, _ := client.Get("http://example.com") fmt.Println(resp.Status) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20161116154839-378f744fb2b8latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
mwitkow-go-http-dialer — go get mwitkow-go-http-dialer · libregistry