Sha256: 1502143b5efd0826a2802fe8ee3ed93d9d5ceabeffb60e37d5fd96914deb42ac

Contents?: true

Size: 263 Bytes

Versions: 17

Compression:

Stored size: 263 Bytes

Contents

/**
 * Module dependencies.
 */

var connect = require('../');

connect(
    connect.static(__dirname + '/public', { maxAge: 0 })
  , function(req, res) {
    res.setHeader('Content-Type', 'text/html');
    res.end('<img src="/tobi.jpeg" />')
  }
).listen(3000);

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
hooch-0.4.2 jasmine/node_modules/karma/node_modules/connect/examples/static.js
hooch-0.4.1 jasmine/node_modules/karma/node_modules/connect/examples/static.js
hooch-0.4.0 jasmine/node_modules/karma/node_modules/connect/examples/static.js
hooch-0.3.0 jasmine/node_modules/karma/node_modules/connect/examples/static.js
hooch-0.2.1 jasmine/node_modules/karma/node_modules/connect/examples/static.js
hooch-0.2.0 jasmine/node_modules/karma/node_modules/connect/examples/static.js
hooch-0.1.0 jasmine/node_modules/karma/node_modules/connect/examples/static.js
hooch-0.0.8 jasmine/node_modules/karma/node_modules/connect/examples/static.js
hooch-0.0.7 jasmine/node_modules/karma/node_modules/connect/examples/static.js
hooch-0.0.6 jasmine/node_modules/karma/node_modules/connect/examples/static.js
entangled-0.0.16 spec/dummy/public/node_modules/karma/node_modules/connect/examples/static.js
entangled-0.0.15 spec/dummy/public/node_modules/karma/node_modules/connect/examples/static.js
entangled-0.0.14 spec/dummy/public/node_modules/karma/node_modules/connect/examples/static.js
entangled-0.0.13 spec/dummy/public/node_modules/karma/node_modules/connect/examples/static.js
entangled-0.0.12 spec/dummy/public/node_modules/karma/node_modules/connect/examples/static.js
entangled-0.0.11 spec/dummy/public/node_modules/karma/node_modules/connect/examples/static.js
entangled-0.0.10 spec/dummy/public/node_modules/karma/node_modules/connect/examples/static.js