Module: ProxyTest

Extended by:
ProxyTest
Included in:
ProxyTest
Defined in:
lib/proxytest/helpers/thin_http_parser.rb,
lib/proxytest.rb,
lib/proxytest/configurator.rb,
lib/proxytest/configurator.rb,
lib/proxytest/helpers/backend.rb,
lib/proxytest/helpers/response.rb

Overview

FILE: thin_http_parser.rb www.franzens.org/2011/10/writing-minimalistic-web-server-using.html Copyright 2011 Nils Franzén

Defined Under Namespace

Classes: Config, RequestParser, Response, SingletonQueue, TestCase

Constant Summary collapse

STATUSES =
{
  200 => "OK",
  418 => "I'm a teapot"
}
HTTP_VERSION =

Freeze some HTTP header names & values

'HTTP_VERSION'.freeze
HTTP_1_0 =
'HTTP/1.0'.freeze
CONTENT_LENGTH =
'CONTENT_LENGTH'.freeze
CONNECTION =
'HTTP_CONNECTION'.freeze
KEEP_ALIVE_REGEXP =
/\bkeep-alive\b/i.freeze
CLOSE_REGEXP =
/\bclose\b/i.freeze
RACK_INPUT =

Freeze some Rack header names

'rack.input'.freeze

Instance Method Summary collapse

Instance Method Details

#config {|::ProxyTest::Config| ... } ⇒ Object



2
3
4
5
# File 'lib/proxytest/configurator.rb', line 2

def config
  ::ProxyTest::Config.seed_from_environment!
  yield ::ProxyTest::Config
end