Commit Graph

1 Commits

Author SHA1 Message Date
Blake Mizerany 307f93c6f1 RESTful testing
To be used in one of two ways:

  post_it '/', :foo => 'bar', :env => { :agent => 'Mac Intel' }

  or

  post_it '/', '<myxml></myxml>', :agent => 'Mac Intel'

to receive this in your EventContext

  For query params:

  post '/' do
    params.inspect
  end

  For XML/JSON/etc.. :

  post '/' do
    request.body.string
  end
2008-04-09 22:50:56 -07:00