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/rev/http_client.rb, line 34 def chunked_encoding? /chunked/ === self[HttpClient::TRANSFER_ENCODING] end
Length of content as an integer, or nil if chunked/unspecified
# File lib/rev/http_client.rb, line 29 def content_length Integer(self[HttpClient::CONTENT_LENGTH]) rescue nil end
HTTP response status as an integer
# File lib/rev/http_client.rb, line 24 def status Integer(http_status) rescue nil end