A simple hash is returned for each request made by HttpClient with the headers that were given by the server for that request.
The reason returned in the http response (“OK”,“File not found”,etc.)
The status code (as a string!)
The HTTP version returned.
Is the transfer encoding chunked?
# File lib/cool.io/http_client.rb, line 35 def chunked_encoding? /chunked/ === self[HttpClient::TRANSFER_ENCODING] end
Length of content as an integer, or nil if chunked/unspecified
# File lib/cool.io/http_client.rb, line 30 def content_length Integer(self[HttpClient::CONTENT_LENGTH]) rescue nil end
HTTP response status as an integer
# File lib/cool.io/http_client.rb, line 25 def status Integer(http_status) rescue nil end