absolute.gem

absolute is just getting started...

install absolute gem

gem install absolute

Experiment 1

make a Rack (usually config.ru) file with:


require 'absolute'

Absolute::post_received do |data|

    #
    # data is the post body
    #

    puts "\n\nDID YOU: #{data}\n\n" 

end

run Absolute::App

start the rack (up)

rackup config.ru

### post a spot of json 

<pre>

curl -i -X POST -d '{"c":"this"}' http://localhost:9292