Sha256: 068fabafbc50ec83bd4f3ef4cfec734edeede97bfe48a71d717c01352a79ee21
Contents?: true
Size: 430 Bytes
Versions: 12
Compression:
Stored size: 430 Bytes
Contents
require 'yaml' require 'sinatra' set :logging, false get '/' do params.to_s end get '/submit' do params.to_hash.to_yaml end get '/sleep' do sleep 2 <<-EOHTML <a href='?input=blah'>Inject here</a> #{params[:input]} EOHTML end get '/refreshable' do <<HTML <a href="/refreshable?param_name=stuff">Irrelevant</a> <a href="/link?param_name=stuff&nonce=#{rand(999)}">Refreshable</a> HTML end
Version data entries
12 entries across 12 versions & 1 rubygems