HTTPStream.Adapter.HTTPoison (HTTPStream v1.0.0) View Source

Implements HTTPStream.Adapter for the HTTPoison client.

HTTPoison performs async requests through messages. This means there is an implicit timeout if, for some reason, the server stops responding. By default this timeout is 30_000 (in milliseconds) but can be configured by setting in your config/config.exs file:

config :http_stream, HTTPStream.Adapter.HTTPoison, timeout: 60_000