tkEdge

package
v1.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// StatusChan 用于外部接收浏览器关闭信号
	StatusChan = make(chan error, 1)
)

Functions

func Clear

func Clear()

Clear 清除存储的请求数据

func GetCookies

func GetCookies() (map[string]string, error)

GetCookies 获取当前页面的所有 Cookie 并返回 Map 格式 [Name]Value

func GetCookiesAll

func GetCookiesAll() (map[string]string, error)

GetCookiesAll 获取所有 Cookie (Storage) 并返回 Map 格式 [Name]Value

func GetReq

func GetReq(key string) string

GetReq 获取请求头信息 获取请求头中的信息(忽略大小写)

func GetRes

func GetRes(key string) string

GetRes 获取响应头信息 获取指定路径的响应头信息(大小写敏感)

func GetUrl

func GetUrl() (string, error)

GetUrl获取浏览器当前url

func GetUrlQuery

func GetUrlQuery(key string) string

获取URL中的参数 获取GET请求中的urlQuery

func LoadUrl

func LoadUrl(targetURL string)

LoadUrl 加载指定url

func Run

func Run(urlPath string, msedgePath ...string)

Run 有界面模式运行 msedgePath可指定msedge.exe路径

func RunCli

func RunCli(urlPath string, msedgePath ...string)

RunCli 无头模式运行 (Headless) msedgePath指定msedge.exe路径

func Stop

func Stop()

Stop 停止运行

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL