JSGI
JSGI is a JavaScript web connector protocol inspired by Ruby's Rack and Python's WSGI.
RingoJS currently supports level 0, draft 2 of JSGI version 0.3. At its simplest, a Ringo JSGI application consists of a single config module that exports the JSGI application as app.
exports.app = function (env) {
return {
status: 200,
headers: {"Content-Type": "text/plain"},
body: ["Hello World!"]
};
}
Additionally, the config module may export an array of middleware functions or modules as middleware.
A very basic JSGI application is included with RingoJS in the apps/jsgi directory.
