Class: Tap::Test::HttpTest::EchoServer
- Inherits:
-
Object
- Object
- Tap::Test::HttpTest::EchoServer
- Defined in:
- lib/tap/test/http_test.rb
Class Method Summary collapse
Class Method Details
.call(env) ⇒ Object
29 30 31 32 33 34 35 |
# File 'lib/tap/test/http_test.rb', line 29 def self.call(env) body = env['rack.input'].read headers = {} env.each_pair {|key, value| headers[key] = [value] unless key =~ /^rack/ } [200, headers, [body]] end |