3 nr = ENV['nr'] ? ENV['nr'].to_i : 100000
6 def initialize(response)
7 @response = (response.join("\r\n") << "\r\n\r\n").freeze
10 buf.replace(@response)
13 alias readpartial sysread
15 # old versions of Unicorn used this
21 small = TestClient.new([
25 'User-Agent: test-user-agent 0.1.0'
28 medium = TestClient.new([
29 'GET /hello/world/geturl?abcd=efg&hi#anchor HTTP/1.0',
32 'User-Agent: test-user-agent 0.1.0 (Mozilla compatible) 5.0 asdfadfasda'
36 request = HttpRequest.new(Logger.new($stderr))
37 unless request.respond_to?(:reset)