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