Grab Options Full reference of all options accepted by the grab() request function.
Every option below can be passed in the second argument of grab(path, options), or set
globally as defaults with grab(path, { setDefaults: true, ...options }).
headers?Record<string, string>
response?TResponse | ((params) => TResponse)
method?"GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD"
cancelOngoingIfNew?boolean
cancelNewIfOngoing?boolean
infiniteScroll?[string, string, string | HTMLElement]
onRequest?(...args) => any
onResponse?(...args) => any
onStream?(...args) => any
onRawResponse?(response: Response) => void
parseDOM?string | boolean