I'm trying to figure out how to get the size of a Nokogiri XML document. The document is being fetched with open
:
Nokogiri::XML(open(my_url))
Is it possible at this point to determine the size of the returned document? Are any HTTP headers retrievable such as Content-type or Content-Length?