cUrl function timeout

When I’m using eventing - there are certain invocations are timing out - on investigating it is due to cUrl taking longer time - so we want to fail fast and capture the failure and go for retry, as the eventing function timeout will not be able to capture it, is there a way to pass timeout in the cUrl construct ? I don’t find any pinpointed details of how to pass timeout into cURL in the documentation.

See connect-timeout and max-time in Transfer Options.

this doc seems to be cURL for SQL++ not for eventing - eventing cURL syntax is completely different.
here is the document for eventing cURL → cURL | Couchbase Docs

in this document they didn’t provide option to pass timeout.

You’re right. Google failed me.
I wonder if you can call the n1ql cURL from eventing?