swift_server 0.2.0 swift_server: ^0.2.0 copied to clipboard
create simple microservices using swift_composer
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add swift_server
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
swift_server: ^0.2.0
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:swift_server/builtin_actions.dart';
import 'package:swift_server/cli.dart';
import 'package:swift_server/config.dart';
import 'package:swift_server/daemon.dart';
import 'package:swift_server/error_handler.dart';
import 'package:swift_server/http_status_codes.dart';
import 'package:swift_server/queues.dart';
import 'package:swift_server/server.dart';
import 'package:swift_server/stats.dart';
import 'package:swift_server/testsuite.dart';
import 'package:swift_server/tools.dart';