Documentation ¶
Index ¶
Constants ¶
View Source
const (
// 默认对站点的 http 请求模仿最新版 Chrome Windows 11 x64 en-US 环境
DEFAULT_IMPERSONATE = "chrome122"
)
Variables ¶
This section is empty.
Functions ¶
func GetAllProfileNames ¶
func GetAllProfileNames() (names string)
Get all available impersonate profile names, joined by ","
Types ¶
type Profile ¶
type Profile struct { // "chrome", "firefox", "opera", "safari", "edge", "ios", "android" Name string Ja3 string H2fingerprint string Headers [][]string // use "\n" as placeholder for order; use "" (empty) to delete a header Comment string }
func GetProfile ¶
GetProfile get impersonate profile by name. If name is empty, return default profile. If name is not empty but corresponding profile does not exists, return nil.
Click to show internal directories.
Click to hide internal directories.