mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-14 15:56:44 +03:00
Add missing fasthttp prefix in example usage (#1487)
This commit is contained in:
@@ -25,7 +25,7 @@ const (
|
||||
// Example usage:
|
||||
//
|
||||
// c := &fasthttp.Client{
|
||||
// Dial: FasthttpProxyHTTPDialer(),
|
||||
// Dial: fasthttp.FasthttpProxyHTTPDialer(),
|
||||
// }
|
||||
func FasthttpProxyHTTPDialer() fasthttp.DialFunc {
|
||||
return FasthttpProxyHTTPDialerTimeout(0)
|
||||
@@ -37,7 +37,7 @@ func FasthttpProxyHTTPDialer() fasthttp.DialFunc {
|
||||
// Example usage:
|
||||
//
|
||||
// c := &fasthttp.Client{
|
||||
// Dial: FasthttpProxyHTTPDialerTimeout(time.Second * 2),
|
||||
// Dial: fasthttp.FasthttpProxyHTTPDialerTimeout(time.Second * 2),
|
||||
// }
|
||||
func FasthttpProxyHTTPDialerTimeout(timeout time.Duration) fasthttp.DialFunc {
|
||||
proxier := httpproxy.FromEnvironment().ProxyFunc()
|
||||
|
||||
Reference in New Issue
Block a user