Sha256: 998ee7cdae324ae9217b3c6e205cde60dff657e93fba3397f4becf8b916c1f38
Contents?: true
Size: 288 Bytes
Versions: 4
Compression:
Stored size: 288 Bytes
Contents
require 'yaml' require 'sinatra' set :logging, false def submitted { 'param' => env['HTTP_PARAM'] } end get '/' do env['HTTP_MY_HEADER'].to_s end get '/submit' do submitted.to_hash.to_yaml end get '/sleep' do sleep 2 <<-EOHTML #{params[:input]} EOHTML end
Version data entries
4 entries across 4 versions & 1 rubygems