Skip to content
This repository was archived by the owner on Jul 7, 2025. It is now read-only.

civilcode/remote-file-streamer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RemoteFileStreamer

RemoteFileStreamer is a micro-library to stream a remote file. Mostly, it provides a stream function taking a url as an input and returns a stream out of it. If the server hosting the resource allows it, a file a streamed from a url

Installation

The package is available in Hex, and can be installed by adding file_streamer to your list of dependencies in mix.exs:

def deps do
  [
    {:remote_file_streamer, "~> 1.0"}
  ]
end

Examples

The following example will stream the content from the file located in the url, and consume the stream by outputing every chunks composing the resource:

  url
  |> RemoteFileStream.stream
  |> Enum.each(fn(chunk) -> IO.puts chunk end)

Documentation

About

RemoteFileStreamer is an Elixir micro-library for remote file streaming

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages