gecko/testing/xpcshell/node-spdy/lib/spdy.js
Patrick McManus cfd7737f5a bug 790388 part 4 - upgrade testing/node-spdy to 1.8.8 r=hurley
--HG--
extra : rebase_source : b68f6dbf8faa5b97b4a97417d35c037b0557e426
2013-05-29 00:07:03 -04:00

33 lines
745 B
JavaScript

var spdy = exports;
// Exports utils
spdy.utils = require('./spdy/utils');
// Export parser&framer
spdy.protocol = {};
try {
spdy.protocol.generic = require('./spdy/protocol/generic.node');
} catch (e) {
spdy.protocol.generic = require('./spdy/protocol/generic.js');
}
// Supported SPDY versions
spdy.protocol[2] = require('./spdy/protocol/v2');
spdy.protocol[3] = require('./spdy/protocol/v3');
spdy.parser = require('./spdy/parser');
// Export ServerResponse
spdy.response = require('./spdy/response');
// Export Scheduler
spdy.scheduler = require('./spdy/scheduler');
// Export ZlibPool
spdy.zlibpool = require('./spdy/zlib-pool');
// Export server
spdy.server = require('./spdy/server');
spdy.createServer = spdy.server.create;