feat(types): support full HTTP method set and rename postData to body

This commit is contained in:
germondai
2026-07-06 01:12:06 +02:00
parent 5fde497e3a
commit 7c87dc0b1a
+5 -2
View File
@@ -16,8 +16,11 @@ export interface ScrapeRequest {
maxTier?: 1 | 2 | 3 | 4
sessionId?: string
headers?: Record<string, string>
method?: string
postData?: string
// CONNECT is intentionally excluded — it's a tunneling verb, not a normal
// request body, and would let a caller establish arbitrary TCP tunnels.
// QUERY (RFC 9341) is included — safe verb, body carries the query params.
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS" | "TRACE" | "QUERY"
body?: string
}
export interface TierResult {