Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 612 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 612 Bytes

HttpClient

Httpoison boosted with telemetry, mox and ex_rated.

HttpClient.get("http://mydomain.com")

Installation

The package can be installed by adding http_client to your list of dependencies in mix.exs:

def deps do
  [
    {:http_client, "~> 0.2.3"}
  ]
end

The docs can be found at https://hexdocs.pm/http_client.

Configuration

# Will rate limit calls to mydomain.com to 5 per seconds
# HttpClient.get("http://mydomain.com/any_path")
config :http_client, :rate_limits, "mydomain.com": [{:timer.seconds(1), 5}]