Module: Eat

Defined in:
lib/eat.rb,
lib/eat/version.rb

Defined Under Namespace

Modules: ObjectExtensions

Constant Summary collapse

AGENT_NAME =

httpclient 2.2.3 inserts the platform info for you, albeit with problems AGENT_NAME = “Mozilla/5.0 (#RUBY_PLATFORM) Ruby/#RUBY_VERSION HTTPClient/#HTTPClient::VERSION eat/#VERSION

"eat/#{::Eat::VERSION}"
INFINITY =
1.0/0
REDIRECT_HANDLER =
::Proc.new do |uri, res|
  newuri = ::URI.parse(res.header['location'][0])
  unless newuri.is_a?(::URI::HTTP)
    newuri = uri + newuri
  end
  newuri
end
TIMEOUT =
2
VERSION =
"0.1.8"