added random value selection feature to request objects (#19)

This commit is contained in:
2024-09-12 01:03:15 +04:00
parent d0e5c343ea
commit 8ad0bb5697
7 changed files with 266 additions and 60 deletions

View File

@ -16,6 +16,8 @@ import (
"github.com/valyala/fasthttp/fasthttpproxy"
)
type ClientDoFunc func(ctx context.Context, request *fasthttp.Request) (*fasthttp.Response, error)
// getClientDoFunc returns a ClientDoFunc function that can be used to make HTTP requests.
//
// The function first checks if there are any proxies available. If there are, it retrieves the active proxy clients