Module: Down::NetHttp::DownloadedFile

Defined in:
lib/down/net_http.rb

Instance Method Summary collapse

Instance Method Details

#content_typeObject



273
274
275
# File 'lib/down/net_http.rb', line 273

def content_type
  super unless meta["content-type"].to_s.empty?
end

#original_filenameObject



268
269
270
271
# File 'lib/down/net_http.rb', line 268

def original_filename
  Utils.filename_from_content_disposition(meta["content-disposition"]) ||
  Utils.filename_from_path(base_uri.path)
end