Files
tubestation/testing/xpcshell/node-spdy/lib/spdy.js
2012-05-21 12:12:37 +01:00

36 lines
907 B
JavaScript

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
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');
}
// Only SPDY v2 is supported now
spdy.protocol[2] = require('./spdy/protocol/v2');
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;