Sha256: 96a13cbb58854dde414f70c76ab38fd0064b2427bfd6dd080c876a41ccd1ccc0

Contents?: true

Size: 227 Bytes

Versions: 21

Compression:

Stored size: 227 Bytes

Contents

require 'sinatra'

class App < 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
end

run App

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
excon-0.10.1 tests/rackups/basic.ru
excon-0.10.0 tests/rackups/basic.ru
excon-0.9.6 tests/rackups/basic.ru
excon-0.9.5 tests/rackups/basic.ru
excon-0.9.4 tests/rackups/basic.ru
excon-0.9.3 tests/rackups/basic.ru
excon-0.9.2 tests/rackups/basic.ru
excon-0.9.1 tests/rackups/basic.ru
excon-0.9.0 tests/rackups/basic.ru
excon-0.8.0 tests/rackups/basic.ru
excon-0.7.12 tests/rackups/basic.ru
excon-0.7.11 tests/rackups/basic.ru
excon-0.7.10 tests/rackups/basic.ru
excon-0.7.9 tests/rackups/basic.ru
excon-0.7.8 tests/rackups/basic.ru
excon-0.7.7 tests/rackups/basic.ru
excon-0.7.6 tests/rackups/basic.ru
excon-0.7.5 tests/rackups/basic.ru
excon-0.7.4 tests/rackups/basic.ru
excon-0.7.3 tests/rackups/basic.ru