lib/infrataster/resources/http_resource.rb in infrataster-0.3.1 vs lib/infrataster/resources/http_resource.rb in infrataster-0.3.2
- old
+ new
@@ -38,11 +38,11 @@
end
def headers
@options[:headers]
end
-
+
def body
@options[:body]
end
def ssl_option
@@ -54,9 +54,22 @@
end
def inflate_gzip?
!!@options[:inflate_gzip]
end
+
+ def follow_redirects?
+ !!@options[:follow_redirects]
+ end
+
+ def faraday_middlewares
+ (@options[:faraday_middlewares] || []).map do |m|
+ Array(m)
+ end
+ end
+
+ def host_mapping
+ @options[:host_mapping] || {}
+ end
end
end
end
-