Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Updated gzip example
  • Loading branch information
beatgammit committed Jul 5, 2011
1 parent d73d22f commit 879c3de
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 11 deletions.
16 changes: 16 additions & 0 deletions examples/gzip.js
@@ -0,0 +1,16 @@
#!/usr/bin/env node
(function () {
'use strict';

var connect = require('connect'),
compressor = require('compressor'),
squish = require('../lib/squish'),
port = 2200;

connect(
squish('gzip', compressor.GzipStream),
connect.static('./public')
).listen(port, function () {
console.log('Server on port ' + port);
});
}());
8 changes: 8 additions & 0 deletions examples/public/index.html
@@ -0,0 +1,8 @@
<html>
<head>
<title>Yay, it worked</title>
</head>
<body>
This HTML file came across compressed. Isn't that neat?
</body>
</html>
11 changes: 0 additions & 11 deletions examples/server.js

This file was deleted.

0 comments on commit 879c3de

Please sign in to comment.