Skip to content

Commit

Permalink
fasthttpproxy: fix doc examples
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear authored and kirillDanshin committed Aug 30, 2023
1 parent 4ec5c5a commit 8236f8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fasthttpproxy/proxy_env.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const (
// Example usage:
//
// c := &fasthttp.Client{
// Dial: fasthttp.FasthttpProxyHTTPDialer(),
// Dial: fasthttpproxy.FasthttpProxyHTTPDialer(),
// }
func FasthttpProxyHTTPDialer() fasthttp.DialFunc {
return FasthttpProxyHTTPDialerTimeout(0)
Expand All @@ -37,7 +37,7 @@ func FasthttpProxyHTTPDialer() fasthttp.DialFunc {
// Example usage:
//
// c := &fasthttp.Client{
// Dial: fasthttp.FasthttpProxyHTTPDialerTimeout(time.Second * 2),
// Dial: fasthttpproxy.FasthttpProxyHTTPDialerTimeout(time.Second * 2),
// }
func FasthttpProxyHTTPDialerTimeout(timeout time.Duration) fasthttp.DialFunc {
proxier := httpproxy.FromEnvironment().ProxyFunc()
Expand Down

0 comments on commit 8236f8d

Please sign in to comment.