Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UserAgents = map[string]string{
"Chrome": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36",
"Firefox": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0",
"Safari": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1 Safari/605.1.15",
"Edge": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36 Edg/85.0.564.70",
}
UserAgents for testing different browser fingerprints with distinct versions
Functions ¶
func CreateDirectClient ¶
CreateDirectClient creates a direct HTTP client (no proxy) with HTTP/2 support
func CreateProxyClient ¶
CreateProxyClient creates an HTTP client configured to use the proxy
Types ¶
type TestServer ¶
type TestServer struct {
HTTPServer *http.Server
HTTPSServer *http.Server
WebSocketServer *http.Server // HTTP WebSocket server
WebSocketSSLServer *http.Server // HTTPS WebSocket server
HTTPPort string
HTTPSPort string
WebSocketPort string
WebSocketSSLPort string
}
TestServer holds test server instances
func NewTestServer ¶
func NewTestServer(httpPort, httpsPort, wsPort, wssPort string) *TestServer
NewTestServer creates test servers for HTTP, HTTPS, and WebSocket
Click to show internal directories.
Click to hide internal directories.