Packmatic.Source.URL (Packmatic v1.2.0) View Source

Represents content which can be acquired by downloading from a remote server via HTTP(S) in chunks. Each chunk is then pulled away by the Encoder, which is iterated by the Stream.

The underlying implementation is achieved via HTTPoison and Hackney.

Link to this section Summary

Link to this section Types

Specs

headers() :: keyword()

Specs

init_arg() ::
  target() | {target(), options()} | {target(), headers(), options()}

Specs

init_result() :: {:ok, t()}

Specs

options() :: keyword()

Specs

t() :: %Packmatic.Source.URL{stream_id: term(), url: String.t()}

Specs

target() :: String.t() | URI.t()

Link to this section Functions

Link to this function

build_options(inline_options)

View Source
Link to this function

init(target, headers, options)

View Source