The pentf configuration object.
URL to fetch.
Optionalinit: RequestInit & {fetch options, see RequestInit in the Fetch Spec.
On top of the standard Fetch parameters, we support the following nonstandard parameters:
agent: node HTTP/HTTPS agentcurl_include_headers: boolean (default false) of whether to include -k in the curl output.curl_extra_options: List of extra options for the curl output.cookieJar: A CookieJar object to use.
Pass in the string 'create' to create a new one (returned as response.cookieJar).
The response will have a utility function async getCookieValue(name) to quickly retrieve a cookie value from the jar.preferNativeFetch: use native node.js fetch instead of node-fetch. (experimental, doesn't work with self-signed certificates)timeout: timeout in ms
fetch a URL. Apart from the first parameter, this implements the Fetch API. (Using this method rather than another enables outputting of curl commands with
-cand a couple of defaults suitable for pentf).