Reasonably Smart Documentation

The Open Web Cloud

The Skinny On...

Core

<< Back

The core of the reasonably smart platform is very simple. When a request is made to your host, RSP looks for a file called js/bootstrap.js, and executes it.

In return the RSP expects an Array object, that has the following structure:

Other than that, you're free to do what you want. The devil of course, is in the details.

The contents of the request to your web host can be found in the system.request object, that has the following structure:

A very simple example of a valid and working bootstrap.js could look like this:

    [200, "Ok", ['Content-Type','text/plain'], "You requested " + system.request.uri];