HTTPStream (HTTPStream v0.2.0) View Source

HTTPStream is a tiny tiny library for streaming big big files. It works by wrapping HTTP requests onto a Stream. You can use it with Flow, write it to disk through regular streams and more!

HTTPStream.get(large_image_url)
|> Stream.into(File.stream!("large_image.png"))
|> Stream.run()

Link to this section Summary

Functions

Performs a GET request.

Link to this section Functions

Performs a GET request.

Supported options:

  • :headers (default: []) - Keyword list of HTTP headers to add to the request.
  • :query (default: []) - Keyword list of query params to add to the request.