assent_httposion

Hex.pm: version GitHub: CI status License: MIT, same as Assent

Assent adapter for making requests using HTTPoison.

Installation

Add assent_httpoison to your list of dependencies in mix.exs:

def deps do
[
{:assent_httpoison, "~> 0.1.0"}
]
end

Usage

To use the HTTPoison adapter with Assent, configure it in your application settings:

config :assent,
http_client: {AssentHTTPoison.Adapter, []}

You can also pass custom options to HTTPoison:

config :assent,
http_client: {AssentHTTPoison.Adapter, [
timeout: 60_000,
max_redirect: 10
]}