Add getter to avoid exposing _app for Manhattan use. #624

Merged
merged 1 commit into from Oct 12, 2012
Jump to file or symbol
Failed to load files and symbols.
+9 −0
Split
View
@@ -455,6 +455,15 @@ MojitoServer.prototype.close = function() {
};
+/**
+ * Returns the instance of http.Server (or a subtype) which is the true server.
+ * @return {http.Server} The node.js http.Server (or subtype) instance.
+ */
+MojitoServer.prototype.getHttpServer = function() {
+ return this._app;
+};
+
+
/**
* Invokes a callback function with the content of the requested url.
* @param {string} url A url to fetch.