Sha256: f787f757f38fdc4d199054e38dd259fb546031701b4c3e782616553e1641931a

Contents?: true

Size: 236 Bytes

Versions: 1

Compression:

Stored size: 236 Bytes

Contents

require 'rubygems'
require 'sinatra'

get '/hello_world' do
  'hello world'
end

get '/json' do
  "[1,2,3]"
end

get '/params' do
  %(params[:a] == #{params[:a]})
end

get "/headers" do
  %(env[HTTP_X_TEST] == #{env["HTTP_X_TEST"]})
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
faraday-0.1.0 test/live_server.rb