Dowser. Client. HTTP. Hackney
(Dowser.Client v0.1.1)
View Source
HTTP adapter backed by :hackney.
:hackney is an optional dependency. Add {:hackney, "~> 4.6"} to your
deps to use this adapter; a helpful error is raised at call time if it is
missing.
:hackney only ever speaks HTTP/1.1. Keep-alive comes from connection
pooling, so a :pool is enabled by default (:default) — override it with
your own named pool, but a request without a pool would not reuse
connections. The :with_body option is enabled by default so the full
response body is returned in one call.
Options
All opts are passed through as :hackney request options (e.g. :pool,
:recv_timeout, :connect_timeout, :ssl_options). :pool and
:with_body default to :default and true respectively; connect_timeout
defaults to 2_000 and recv_timeout to 30_000 (milliseconds).