key: string
headers: string[]
}
- timeout?: number
jsonResponse?: boolean
} & Pick<GotOptions, 'headers' | 'json' | 'method' | 'searchParams'>
path
}, httpSignatureOptions)
}
- },
-
- (options: GotOptions) => {
- options.timeout = REQUEST_TIMEOUT
}
]
}
doRequest,
doJSONRequest,
doRequestAndSaveToFile,
- downloadImage
+ downloadImage,
+ peertubeGot
}
// ---------------------------------------------------------------------------
return {
method: options.method,
dnsCache: true,
+ timeout: REQUEST_TIMEOUT,
json: options.json,
searchParams: options.searchParams,
- timeout: options.timeout ?? REQUEST_TIMEOUT,
headers,
context
}