Sha256: 27d194ef8b7bb27d8d50d3f586847a033a7594ad64f30eb8d82294ecf513153f
Contents?: true
Size: 507 Bytes
Versions: 1
Compression:
Stored size: 507 Bytes
Contents
module Tap module Mechanize module Test # EchoServer is a Rack application that simply echos back the request # environment. The response is: # # [200, {request headers}, [request body]] # class EchoServer 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 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tap-mechanize-0.6.0 | lib/tap/mechanize/test/echo_server.rb |