module Down::Http::DownloadedFile
Attributes
headers[RW]
url[RW]
Public Instance Methods
charset()
click to toggle source
# File lib/down/http.rb, line 158 def charset HTTP::ContentType.parse(headers["Content-Type"]).charset end
content_type()
click to toggle source
# File lib/down/http.rb, line 154 def content_type HTTP::ContentType.parse(headers["Content-Type"]).mime_type end
original_filename()
click to toggle source
# File lib/down/http.rb, line 149 def original_filename Utils.filename_from_content_disposition(headers["Content-Disposition"]) || Utils.filename_from_path(HTTP::URI.parse(url).path) end