talira

HTTPoison

Yet another HTTP client for Elixir, powered by hackney

open sourceMITfree

HTTPoison is an HTTP client for Elixir built on the Erlang hackney library. It makes GET, POST and the other requests with headers, options and timeouts, streams async responses, handles cookies, multipart uploads and connection pools, and can be wrapped with HTTPoison.Base to build a client for one API with its own URL, headers and response processing.

Problems it solves

  • make HTTP requests from an Elixir app
  • build a small API client module in Elixir
  • stream a large HTTP response asynchronously in Elixir
  • upload a file as multipart form data from Elixir

Features

  • all HTTP methods with headers, options and timeouts
  • async streaming responses
  • cookies
  • connection pools
  • multipart uploads
  • HTTPoison.Base for API-specific clients

Alternatives

The same job

These do what HTTPoison does.

  1. Tesla The flexible HTTP client library for Elixir, with middleware and multiple adapters

Compare HTTPoison with the top 3