This repository has been archived by the owner. It is now read-only.
[DEPRECATED] Angel hook to compress resonses in a variety of formats.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
LICENSE
README.md
pubspec.yaml

README.md

DEPRECATED

As of Angel 1.1.0, this package is unnecessary, as the functionality to compress responses has been inlined into the framework itself.

See the migration guide: https://angel-dart.gitbook.io/angel/migration-guide

compress

version 1.0.0+2 build status

Angel hook to compress responses in a variety of formats.

import 'package:angel_framework/angel_framework.dart';
import 'package:angel_compress/angel_compress.dart';
import 'package:lzw/lzw.dart';

main() {
  var app = new Angel();
  
  // GZIP is the easiest to add
  app.responseFinalizers.add(gzip());
  
  // Support any other codec
  app.responseFinalizers.add(compress('lzw', LZW));
}