mirror of
https://github.com/germondai/trawl.git
synced 2026-08-17 12:11:23 +02:00
feat(types): support full HTTP method set and rename postData to body
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user