Sha256: ce5cb5c384c2c951526f41a643557e01aa055274889a02a1e2f99b8c32dfbc85
Contents?: true
Size: 558 Bytes
Versions: 4
Compression:
Stored size: 558 Bytes
Contents
require 'sinatra' require 'sinatra/contrib' set :logging, false get '/' do cookies[:cookie1] = 'foo' <<HTML <a href='?foo=bar'>Link</a> <form> <input name='input1' /> </form> HTML end get '/non_text_content_type' do headers 'Content-Type' => "foo" end get '/new_form' do <<HTML <form> <input name='input2' /> </form> HTML end get '/new_link' do <<HTML <a href='?link_param=bar2'>Link</a> HTML end get '/new_cookie' do cookies[:new_cookie] = 'hua!' '' end get '/redirect' do '' end
Version data entries
4 entries across 4 versions & 1 rubygems