Related methods

Sends the given binary data to the browser. This method is similar to
render plain: data, but also allows you to specify whether the
browser should display the response as a file attachment (i.e. in a
download dialog) or as inline data. You may also set the content type, the
apparent file name, and other things.

:type - specifies an HTTP content type. Defaults to
‘application/octet-stream’. You can specify either a string or a symbol
for a registered type register with Mime::Type.register, for
example :json If omitted, type will be guessed from the file extension
specified in :filename. If no content type is registered for the
extension, default type ‘application/octet-stream’ will be used.

:disposition - specifies whether the file will be shown inline or
downloaded. Valid values are ‘inline’ and ‘attachment’ (default).

:status - specifies the status code to send with the response.
Defaults to 200.