mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 04:29:02 -04:00
Kore already exposed parts of this via the kore.httpclient() method but this commit takes it a bit further and exposes the libcurl interface completely (including the setopt options). tldr: handle = kore.curl("ftp://ftp.eu.openbsd.org/pub/OpenBSD/README") handle.setopt(kore.CURLOPT_TIMEOUT, 5) data = await handle.run() print("%s" % data.decode())