2012-04-25 17:12:33 -07:00
|
|
|
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');
|
|
|
|
}
|
|
|
|
|
2013-05-28 21:07:03 -07:00
|
|
|
// Supported SPDY versions
|
2012-04-25 17:12:33 -07:00
|
|
|
spdy.protocol[2] = require('./spdy/protocol/v2');
|
2013-05-28 21:07:03 -07:00
|
|
|
spdy.protocol[3] = require('./spdy/protocol/v3');
|
2012-04-25 17:12:33 -07:00
|
|
|
|
|
|
|
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;
|