Class Gitlab::FileResponse
In: lib/gitlab/file_response.rb
Parent: Object

Wrapper class of file response.

Methods

Constants

HEADER_CONTENT_DISPOSITION = 'Content-Disposition'.freeze

Attributes

filename  [R] 

Public Class methods

Public Instance methods

@return [bool] Always false

@return [String] Formatted string with the class name, object id and filename.

Parse filename from the ‘Content Disposition’ header.

to_h()

Alias for to_hash

@return [Hash] A hash consisting of filename and io object

[Validate]