Sha256: bafad7cd98e0f63d0ec5ac538f569ece38b8d4cc1966e7745ddd7ba220bf5cf9
Contents?: true
Size: 268 Bytes
Versions: 1
Compression:
Stored size: 268 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 request.body.read end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
excon-0.11.0 | tests/rackups/basic.rb |