Sha256: 7aab303214a54b72e340f5c83a7cedf92a15341e858fb8c19acb5e44e4156a0c
Contents?: true
Size: 348 Bytes
Versions: 110
Compression:
Stored size: 348 Bytes
Contents
#\ -E none use Rack::ContentLength use Rack::ContentType, 'text/plain' app = lambda do |env| input = env['rack.input'] case env["PATH_INFO"] when "/tmp_class" body = input.instance_variable_get(:@tmp).class.name when "/input_class" body = input.class.name else return [ 500, {}, [] ] end [ 200, {}, [ body ] ] end run app
Version data entries
110 entries across 110 versions & 11 rubygems