Object function reference

download

A reference entry for download

Object function · Response

download(ByteStream data, string filename, [string content_type]) ⇒ Response

Sends a ByteStream as a downloadable file and optionally sets its content type. The response object is returned.