Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mkrecny/http-dynamic

An http interface to multi-language script input, execution and output
https://github.com/mkrecny/http-dynamic

Last synced: 13 days ago
JSON representation

An http interface to multi-language script input, execution and output

Awesome Lists containing this project

README

        

# http-dynamic -- execute any script over HTTP

## Note

This is an experiment. It is not performant! Do not use in production.

## Usage

Start http-dynamic


./lib/http-dynamic

Put scripts (ruby, python, php) in the ./scripts directory:

scripts/hello.rb


puts 'hello from ruby'
puts 'arguments are '+ ARGV[0]
exit()

And execute over HTTP:


curl localhost:8080/hello.rb?foo=bar

Should output:

hello from ruby
arguments are foo=bar

(all data written to stdout will be buffered and returned to HTTP client when script exits)