jaguar_shelf 0.0.1 copy "jaguar_shelf: ^0.0.1" to clipboard
jaguar_shelf: ^0.0.1 copied to clipboard

outdatedDart 1 only

Shelf integration for Jaguar. Use shelf handlers and middleware in Jaguar

jaguar_shelf #

Shelf integration for Jaguar. Use shelf handlers and middleware in Jaguar

Usage #

A simple usage example:

import 'package:jaguar_shelf/jaguar_shelf.dart';
import 'package:shelf/shelf.dart' as shelf;
import 'package:jaguar/jaguar.dart';

main() async {
  shelf.Response echoHandler(shelf.Request request) =>
      new shelf.Response.ok("You've requested ${request.url}");
  final shelfHandler = new ShelfHandler(echoHandler);

  Configuration conf = new Configuration();
  conf.addApi(shelfHandler);
  await serve(conf);
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

0
likes
0
pub points
0%
popularity

Publisher

unverified uploader

Shelf integration for Jaguar. Use shelf handlers and middleware in Jaguar

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

jaguar, shelf

More

Packages that depend on jaguar_shelf