Make a HTTP request
How to use the fetch() api from AS.
Installation
Usage
Add --exportTable --exportRuntime
flag
JavaScript
AssemblyScript
Performance
When as-fetch is used in the browser, it used the native fetch()
which is extremely slow. However, in NodeJS it relies on cross-fetch
or undici-fetch
. Undici fetch is the fastest by far.
Browser Fetch (Slowest)
Cross-Fetch (Fast)
Undici-Fetch (Fastest)
Last updated