Packmatic.Conn (Packmatic v1.1.2) View Source
Contains convenience functions which can be used to easily integrate a Zip stream with Plug-using applications such as Phoenix.
Link to this section Summary
Functions
Convenience function which sends the stream to the conn. The content of the Stream will be sent
with an appropriately configured Content-Disposition
response header (as attachment), and the
name provided will be encoded for maximum compatibility with browsers.
Link to this section Functions
Convenience function which sends the stream to the conn. The content of the Stream will be sent
with an appropriately configured Content-Disposition
response header (as attachment), and the
name provided will be encoded for maximum compatibility with browsers.
Examples
stream
|> Packmatic.Conn.send_chunked(conn, "download.zip")