Sha256: 85452317b8c0df5fbf23d830aafc0a714bcfe3d532ab7c30db32afe0b0848fff

Contents?: true

Size: 341 Bytes

Versions: 64

Compression:

Stored size: 341 Bytes

Contents

require 'sinatra'

class Basic < Sinatra::Base
  get('/content-length/:value') do |value|
    headers("Custom" => "Foo: bar")
    'x' * value.to_i
  end

  post('/body-sink') do
    request.body.read.size.to_s
  end

  post('/echo') do
    echo
  end

  put('/echo') do
    echo
  end

  private

  def echo
    request.body.read
  end

end

Version data entries

64 entries across 64 versions & 3 rubygems

Version Path
excon-0.30.0 tests/rackups/basic.rb
excon-0.29.0 tests/rackups/basic.rb
excon-0.28.0 tests/rackups/basic.rb
excon-0.27.6 tests/rackups/basic.rb
excon-0.27.5 tests/rackups/basic.rb
excon-0.27.4 tests/rackups/basic.rb
excon-0.27.3 tests/rackups/basic.rb
excon-0.27.2 tests/rackups/basic.rb
excon-0.27.1 tests/rackups/basic.rb
excon-0.27.0 tests/rackups/basic.rb
excon-0.26.0 tests/rackups/basic.rb
excon-0.25.3 tests/rackups/basic.rb
excon-0.25.2 tests/rackups/basic.rb
excon-0.25.1 tests/rackups/basic.rb
excon-0.25.0 tests/rackups/basic.rb
excon-0.24.0 tests/rackups/basic.rb
excon-0.23.0 tests/rackups/basic.rb
excon-0.22.1 tests/rackups/basic.rb
excon-0.22.0 tests/rackups/basic.rb
vagrant-shell-0.2.6 vendor/bundle/gems/excon-0.20.1/tests/rackups/basic.rb