Permalink
Browse files

added #content_encoding and #content_length convenience methods

  • Loading branch information...
1 parent 1b3bf01 commit 7cb72226a750d7c9ed15f2b1e918ef91fd7465af @chriskottom committed Sep 27, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/rslow/resource.rb
@@ -29,6 +29,14 @@ def content_type
@headers["Content-Type"]
end
+ def content_encoding
+ @headers["Content-Encoding"]
+ end
+
+ def content_length
+ @headers["Content-Length"]
+ end
+
private
def parse_url_string(url)
url = URI.escape(url)

0 comments on commit 7cb7222

Please sign in to comment.