[quickjs-devel] Re: Is there a C implementation of the fetch standard that I could bind to QuickJS?
- From: Saúl Ibarra Corretgé <s@xxxxxxxxxx>
- To: quickjs-devel@xxxxxxxxxxxxx, "Claudio Silva (claudio.silva)" <dmarc-noreply@xxxxxxxxxxxxx>
- Date: Thu, 16 Jun 2022 14:18:12 +0200
On 15/06/2022 16:14, Claudio Silva (claudio.silva) wrote:
Hello!
QuickJS does not deliver an http client by default.
I understood that I can extend QuickJS by developing a C module that can
be binded to it. Is there an existing C implementation of the fetch
standard that I could bind to QuickJS? Or should I write it from scratch?
Cheers,
Cláudio.
Hey there,
I implemented XHR with libcurl here:
https://github.com/saghul/txiki.js/blob/master/src/xhr.c then fetch is a
JS polyfill on top of XHR.
Hope that helps.
Cheers,
--
Saúl
Other related posts: