How to dump an HTTP request from within Sinatra?
Is there a way to dump all incoming requests to a Sinatra application in the exact way the application receives the data? Maybe some sort of Rack middleware? include I run thin with the -D and -V flags when I want to debug 'things': $ thin start -p 3000 -R config.ru -D -V -D, --debug Set debbuging on -V, --trace Set tracing on (log raw request/response) If you are trying to get the raw output from a request, use the request method like: # app running on http://example.com/example get '/foo' do request.body # request body sent by the client (see below) request.scheme # "http" request.script