shelf_exception_response 0.1.1+1 copy "shelf_exception_response: ^0.1.1+1" to clipboard
shelf_exception_response: ^0.1.1+1 copied to clipboard

Shelf middleware that provides the abillity to simply throw an HttpException that gets converted to an appropriate response code and a formatted response body dependent on the clients accept header.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add shelf_exception_response

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  shelf_exception_response: ^0.1.1+1

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:shelf_exception_response/exception.dart';
import 'package:shelf_exception_response/exception_response.dart';
0
likes
15
pub points
25%
popularity

Publisher

unverified uploader

Shelf middleware that provides the abillity to simply throw an HttpException that gets converted to an appropriate response code and a formatted response body dependent on the clients accept header.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

shelf, shelf_response_formatter

More

Packages that depend on shelf_exception_response