Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Expose roboHydraHeadType via 'robohydra'

  • Loading branch information...
commit 899ebd79591059a33919677a0bc706e3a75e4126 1 parent 55613e5
@estebanm estebanm authored
Showing with 9 additions and 11 deletions.
  1. +1 −0  lib/heads.js
  2. +8 −11 lib/robohydra.js
View
1  lib/heads.js
@@ -534,6 +534,7 @@ RoboHydraHeadWatchdog.prototype._uncompress =
exports.InvalidRoboHydraHeadException = InvalidRoboHydraHeadException;
+exports.roboHydraHeadType = roboHydraHeadType;
exports.RoboHydraHead = RoboHydraHead;
exports.RoboHydraHeadStatic = RoboHydraHeadStatic;
exports.RoboHydraHeadFilesystem = RoboHydraHeadFilesystem;
View
19 lib/robohydra.js
@@ -1,11 +1,7 @@
var fs = require('fs'),
url = require('url'),
assert = require('assert');
-var heads = require('./heads'),
- HydraHead = heads.HydraHead,
- HydraHeadStatic = heads.HydraHeadStatic,
- HydraHeadFilesystem = heads.HydraHeadFilesystem,
- HydraHeadProxy = heads.HydraHeadProxy;
+var heads = require('./heads');
var utils = require('./utils.js'),
serveStaticFile = utils.serveStaticFile,
proxyRequest = utils.proxyRequest,
@@ -335,12 +331,13 @@ RoboHydra.prototype.getModulesObject = function() {
};
-exports.RoboHydra = RoboHydra;
-exports.Request = Request;
-exports.Response = Response;
-exports.serveStaticFile = serveStaticFile;
-exports.proxyRequest = proxyRequest;
-exports.heads = heads;
+exports.RoboHydra = RoboHydra;
+exports.Request = Request;
+exports.Response = Response;
+exports.serveStaticFile = serveStaticFile;
+exports.proxyRequest = proxyRequest;
+exports.heads = heads;
+exports.roboHydraHeadType = heads.roboHydraHeadType;
exports.RoboHydraException = RoboHydraException;
for (var exception in exceptions) {
exports[exception] = exceptions[exception];
Please sign in to comment.
Something went wrong with that request. Please try again.