Forum Archive

Run current script as web application

uncleWalter120

Running this from the editor action menu will launch the script currently being edited as a request handler inside an http server:

https://gist.github.com/5153629

The server is then accessed via the built-in web browser. Useful for testing web applications. Any feedback is very much appreciated.

Have fun
Frank

uncleWalter120

Update: in order to make it a bit more useful, the script now accepts subclasses of BaseHTTPRequestHandler as handlers. See example in module doc.