mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 22:40:01 -04:00
8 lines
No EOL
230 B
JavaScript
8 lines
No EOL
230 B
JavaScript
async function test() {
|
|
await libcurl.fetch("https://example.com/");
|
|
for (let i=0; i<20; i++) {
|
|
let r = await libcurl.fetch("https://example.com/");
|
|
assert(r.status === 200, "wrong status");
|
|
await r.text();
|
|
}
|
|
} |