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

package fasthttpproxy

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

Index

Package Files

socks5.go

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 3 packages (graph). Updated 2019-11-04. Refresh now. Tools for package owners.