Closed jason-liu22 closed 7 months ago
I know we can send a custom request like following. curl.setOpt(Curl.option.CUSTOMREQUEST, method); But I want to write it asynchronously(Promise), not an on event based. How can I do it?
curl.setOpt(Curl.option.CUSTOMREQUEST, method);
on
use await curly(url, { customRequest: 'SOMETHING' })
await curly(url, { customRequest: 'SOMETHING' })
I know we can send a custom request like following.
curl.setOpt(Curl.option.CUSTOMREQUEST, method);
But I want to write it asynchronously(Promise), not anon
event based. How can I do it?