Executing Controller Commands Via Web Requests
To execute a method in the controller instance, simply append the method name to the end of the URL. If you wish to pass in either int or float arguments, they can be added afterwords, delimited by underscores. Other types may currently not be passed via the web interface. Here are some examples:
# call the Controller method "turn-agent-blue" http://myserver:33333/turn-agent-blue # call the Controller method "set-agent-color" with three float type arguments. http://myserver:33333/set-agent-color_.2_.4_.6
The controller methods called may optionally return a string which will determine what information is sent back to the web browser. If the string ends with ".html", breve will try to load data from an HTML file on the local disk and send it back to the web browser (sending HTML files is described in more detail in the next section). Otherwise, the string itself is returned to the web-broswer.
