Feedistiller.Http

HTTP wrappers to get feed content.

Summary

Functions

Synchronous get returning the full response body. Redirection is handled automatically

Asynchronous get returning the body in chunks, with redirection handling (up to 5). A provided callback is called on each chunks in order with an accumulator

Asynchronous get returning the body in chunks, with redirection handling (up to provided maximum redirections). A provided callback is called on each chunks in order with an accumulator

Functions

full_get!(url, user, password)

Specs

full_get!(String.t, String.t, String.t) :: binary

Synchronous get returning the full response body. Redirection is handled automatically.

stream_get!(url, process_chunk, state)

Specs

stream_get!(binary, (... -> any), any) :: :ok

Asynchronous get returning the body in chunks, with redirection handling (up to 5). A provided callback is called on each chunks in order with an accumulator.

stream_get!(url, process_chunk, state, max_redirect)

Specs

stream_get!(binary, (... -> any), any, integer) :: :ok

Asynchronous get returning the body in chunks, with redirection handling (up to provided maximum redirections). A provided callback is called on each chunks in order with an accumulator.