Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swelham/ivar_httpoison
An HTTPoison adapter for the Ivar HTTP client
https://github.com/swelham/ivar_httpoison
elixir http-adapter httpoison ivar
Last synced: 30 days ago
JSON representation
An HTTPoison adapter for the Ivar HTTP client
- Host: GitHub
- URL: https://github.com/swelham/ivar_httpoison
- Owner: swelham
- License: mit
- Created: 2017-07-26T12:07:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-04T20:42:48.000Z (about 6 years ago)
- Last Synced: 2024-10-02T11:06:44.093Z (about 1 month ago)
- Topics: elixir, http-adapter, httpoison, ivar
- Language: Elixir
- Size: 18.6 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/swelham/ivar_httpoison.svg?branch=master)](https://travis-ci.org/swelham/ivar_httpoison) [![Deps Status](https://beta.hexfaktor.org/badge/all/github/swelham/ivar_httpoison.svg)](https://beta.hexfaktor.org/github/swelham/ivar_httpoison) [![Hex Version](https://img.shields.io/hexpm/v/ivar_httpoison.svg)](https://hex.pm/packages/ivar_httpoison)
# Ivar HTTPoison
An HTTPoison adapter for the Ivar HTTP client
## Usage
Add `ivar_httpoison` to your list of dependencies in `mix.exs`
```elixir
def deps do
[
{:ivar_httpoison, "~> 0.2.0"}
]
end
```And then configure Ivar to use the adapter
```elixir
config :ivar,
adapter: Ivar.HTTPoison
```## HTTPoison Config
You can configure any of the HTTPoison options via the `http` config key and these will be passed onto HTTPoison
```elixir
config :ivar,
adapter: Ivar.HTTPoison,
http: [
timeout : 5_000
]
```