Skip to content

请求类型

📨 `pkg/api/types.go` — API 数据契约。

📁 源码:pkg/api/types.go

类型

符号源码说明
APIResponseL13统一响应
InteractionActionL21交互动作
FormFieldL31表单字段
FormL39表单
CustomCookieL47自定义 Cookie
BrowserFingerprintL57指纹
ScreenshotRequestL73截图请求体
BatchScreenshotRequestL113批量请求体
ScreenshotInfoL204截图元信息

ScreenshotRequest 字段

字段说明
URL目标
ViewportWidth/Height视口
FullPage整页
Format/Quality输出格式
WaitUntil/Delay/Timeout等待策略
HTML/HAR/Cookies/ConsoleLogs证据开关
CustomHeaders/UserAgent请求定制
Proxy代理
Cookies []CustomCookie注入 Cookie
Forms []Form表单提交
Actions []InteractionAction交互动作
Fingerprint指纹

请求→Options 转换

createRunnerOptionsScreenshotRequest 映射为 runner.Options

请求类型分类

下图按端点维度归纳 API 的请求类型与各自的关键字段,便于快速对照"该端点接受什么"。

BatchScreenshotRequest

BatchScreenshotRequest 包含 []ScreenshotRequest 与并发参数,由 HandleBatchScreenshot 处理。

下一步

基于 MIT 许可发布