Skip to content

wasm-outbound-http-examples/dart

Repository files navigation

Make HTTP requests from inside WASM in Dart

This devcontainer is configured to provide you a Dart SDK version 3.5.2 and the latest Node.js.

Open in GitHub Codespaces

# Example Description Browser demo Node.js / Deno / Bun support
1

package: http

using package:http

Demo

2

package: web

using package:web

Demo

3

package: fetch_api

using package:fetch_api

Demo

+
4

package: fetch_client

using package:fetch_client

Demo

+
5

package: dio

using package:dio

Demo

6

package: requests

using package:requests

Demo

7

fetch() via js_interop_unsafe

using raw fetch() invoked via js_interop_unsafe

Demo

+
8

fetch() via js_interop and extension type

using raw fetch() imported via js_interop and extension type

Demo

+
9

cf_workers.dart

HTTP request from WASM Cloudflare Worker implemented in Dart

Needs alternate devcontainer: Open in GitHub Codespaces

Not applicable

Created for (wannabe-awesome) list