Sha256: b75e467d5db5e52e421986201bf25f5fd62916d41c8aa2451e379a6b35f853cb
Contents?: true
Size: 428 Bytes
Versions: 4
Compression:
Stored size: 428 Bytes
Contents
require 'rack' module Rack class Dummy def call(env) puts '-> Rack::Dummy' lines = [] req = Rack::Request.new(env) lines << req.path lines << req.params.inspect lines << req.host lines << req.env.inspect lines << "SUBDOMAIN: #{env['SUBDOMAIN']}" lines << '<a href="/some/resource">' [200, { 'Content-Type' => 'text/plain' }, lines.join("\n")] end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rewritten-0.16.5 | lib/rack/dummy.rb |
rewritten-0.16.4 | lib/rack/dummy.rb |
rewritten-0.16.3 | lib/rack/dummy.rb |
rewritten-0.16.2 | lib/rack/dummy.rb |