Class: Anyfetch::HTTP
- Inherits:
-
Object
- Object
- Anyfetch::HTTP
- Defined in:
- lib/anyfetch/http.rb
Constant Summary collapse
- OPTIONS =
{ "User-Agent" => "Mozilla/5.0 (X11; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0", :allow_redirections => :safe, }
Instance Method Summary collapse
-
#initialize(uri, options) ⇒ HTTP
constructor
A new instance of HTTP.
- #open ⇒ Object
Constructor Details
Instance Method Details
#open ⇒ Object
16 17 18 19 20 |
# File 'lib/anyfetch/http.rb', line 16 def open file = super(@uri, @options) file.extend(OriginalFilename::ContentType) file end |