utils_http

Utilities to work with HTTP in Elixir

Currently it’s work in progress for internal usage, missing tests, use at your own risk.

You could implement your own http client for @behaviour HttpClient or use default UtilsHttp.Client.HTTPoison implementation

Example of usage with default HTTPoison implementation

defmodule ExampleLib.HttpClient do
  @moduledoc """
  Utility wrapper for making HTTP requests.

  Delegates to the configured HTTP client module.
  """
  use Http.Behaviour.HttpClient, http_client: UtilsHttp.Client.HTTPoison
end