Sha256: 2c82d7ac7688efa392fbbff6a3cb1dc0650d9d8a1824f0e66d63b572ac9c2761

Contents?: true

Size: 335 Bytes

Versions: 12

Compression:

Stored size: 335 Bytes

Contents

#!/usr/bin/env ruby

require 'sinatra/base'

class Webserver < Sinatra::Base
  enable :protection
  set :logging, :true

  post '/rspec/:test' do
    case params[:test]
    when 'send'
      if params[:hello] == 'world'
        'hello rspec'
      end
    end
  end

  get '/rspec/:test' do
    params[:test]
  end
end

Webserver.run!

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
proxy_tester-0.1.10 script/test_web
proxy_tester-0.1.8 script/test_web
proxy_tester-0.1.6 script/test_web
proxy_tester-0.1.5 script/test_web
proxy_tester-0.1.4 script/test_web
proxy_tester-0.1.3 script/test_web
proxy_tester-0.1.2 script/test_web
proxy_tester-0.1.1 script/test_web
proxy_tester-0.1.0 script/test_web
proxy_tester-0.0.9 script/test_web
proxy_tester-0.0.8 script/test_web
proxy_tester-0.0.7 script/test_web