edge_runtime_unofficial 0.0.11 copy "edge_runtime_unofficial: ^0.0.11" to clipboard
edge_runtime_unofficial: ^0.0.11 copied to clipboard

Runtime APIs for running Dart on Edge function environments.

example/lib/main.dart

import 'package:edge_runtime_unofficial/edge_runtime_unofficial.dart';
import 'package:http/http.dart' as http;

void main() {
  // Setup the runtime environment.
  setupRuntime();
}

/// A fetch event handler.
Future<Response> fetchHandler(Request request) async {
  print('do request');
  final r = await http.get(Uri.parse('https://jsonplaceholder.typicode.com/todos/1'));
  print(r.body);

  return Response('Hello, world!!', status: 200);
}
0
likes
70
points
195
downloads

Publisher

unverified uploader

Weekly Downloads

Runtime APIs for running Dart on Edge function environments.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

freezed_annotation, js, typings

More

Packages that depend on edge_runtime_unofficial