Dust.Requests (Dust v0.0.2-dev) View Source
Requests provide an API to make fetch pages also it supports automatic retries with constant backoff the request should fail.
Link to this section Summary
Functions
Arguments
url
- url to page,options
- keyword list with options
Supports the following options
Link to this section Types
Specs
Specs
result() :: {:ok, Dust.Requests.Result.t(), Dust.Requests.State.t()} | {:error, Dust.Requests.Result.t(), Dust.Requests.State.t()}
Specs
url() :: String.t()
Link to this section Functions
Specs
Arguments
url
- url to page,options
- keyword list with options
Supports the following options
- :proxy - Proxy | string
- :headers - map | keyword list
- :max_retries - int,
- :max_redirects - int,
- :follow_redirect - boolean
Usage
iex> Dust.Requests.get(<URL>, proxy: "socks5://user:pass@10.10.10.10:1080", max_retries: 8,)