lib/httpi/request.rb in httpi-0.4.0 vs lib/httpi/request.rb in httpi-0.4.1

- old
+ new

@@ -42,9 +42,14 @@ end # Sets the Hash of HTTP headers. attr_writer :headers + # Adds a header information to accept gzipped content. + def gzip + headers["Accept-encoding"] = "gzip,deflate" + end + attr_accessor :body, :open_timeout, :read_timeout, :auth_type # Returns whether any authentication credentials were specified. def auth? !!auth_type