ConstEXPERIMENTAL This API can change between minor releases
Async wrapper around the Curl class.
It's also possible to request using a specific http verb
directly by using curl.<http-verb>(url: string, options?: CurlyOptions), like:
curly.get('https://www.google.com')
You can use this to specify the type of the data property returned from this call.
Optionaloptions: CurlyOptionsEXPERIMENTAL This API can change between minor releases
This returns a new curly with the specified options set by default.
These are the default response body parsers to be used.
By default there are parsers for the following:
Set the object pool limit for Curl instances.
When set to 0 (default), pooling is disabled and Curl instances are created/destroyed on each request. When set to a positive number, that many Curl instances will be pre-created and reused.
Curly function