Sha256: 2bee224c7b73b34a854cec5118379b4e8fef15e0c058dc09c977f0a43380e524
Contents?: true
Size: 301 Bytes
Versions: 44
Compression:
Stored size: 301 Bytes
Contents
use Rack::ContentLength headers = { 'Content-Type' => 'text/plain' } run lambda { |env| /\A100-continue\z/i =~ env['HTTP_EXPECT'] and return [ 100, {}, [] ] env['rack.input'].read case env["PATH_INFO"] when %r{/sleep/(\d+)} Rainbows.sleep($1.to_i) end [ 200, headers, [ "#$$\n" ] ] }
Version data entries
44 entries across 44 versions & 1 rubygems