Skip to content

Angel hook to compress resonses in a variety of formats.

License

Notifications You must be signed in to change notification settings

daniel-v/compress

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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));
}

About

Angel hook to compress resonses in a variety of formats.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Dart 100.0%