fasthttp: github.com/valyala/fasthttp/fasthttpproxy Index | Files

package fasthttpproxy

import "github.com/valyala/fasthttp/fasthttpproxy"

Index

Package Files

http.go socks5.go

func FasthttpHTTPDialer Uses

func FasthttpHTTPDialer(proxy string) fasthttp.DialFunc

FasthttpHTTPDialer returns a fasthttp.DialFunc that dials using the provided HTTP proxy.

Example usage:

c := &fasthttp.Client{
	Dial: fasthttpproxy.FasthttpHTTPDialer("username:password@localhost:9050"),
}

func FasthttpSocksDialer Uses

func FasthttpSocksDialer(proxyAddr string) fasthttp.DialFunc

FasthttpSocksDialer returns a fasthttp.DialFunc that dials using the provided SOCKS5 proxy.

Example usage:

c := &fasthttp.Client{
	Dial: fasthttpproxy.FasthttpSocksDialer("localhost:9050"),
}

Package fasthttpproxy imports 7 packages (graph) and is imported by 6 packages. Updated 2020-04-26. Refresh now. Tools for package owners.