puter.workers.exec()Sends a request to a worker endpoint while automatically passing your authentication credentials.
puter.workers.exec(workerURL, options);
workerURL (String)(Required)
The URL of the worker to execute.
options (Object)
Request options similar to the Fetch API:
method (String) - HTTP method (default: 'GET')headers (Object) - Request headersbody (String|Object) - Request bodycache (String) - Cache modecredentials (String) - Credentials modemode (String) - Request moderedirect (String) - Redirect modereferrer (String) - Referrersignal (AbortSignal) - Abort signalA Promise that resolves to a Response object (similar to the Fetch API).