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