astra 1.0.0-dev.159 astra: ^1.0.0-dev.159 copied to clipboard
A robust, multi-threaded shelf web server adapter designed for high performance and concurrent handling of multiple requests.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add astra
With Flutter:
$ flutter pub add astra
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
astra: ^1.0.0-dev.159
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:astra/core.dart';
import 'package:astra/devtools.dart';
import 'package:astra/isolate.dart';
import 'package:astra/middlewares.dart';
import 'package:astra/serve.dart';
import 'package:astra/test.dart';