View Source Disposable.Http (Disposable v0.2.0)

Deprecated compatibility wrapper around Req.

Requests do not follow redirects, retry, decompress, or decode response bodies. Response bytes are bounded while Req streams them to the caller.

Summary

Functions

Performs a bounded GET request.

Types

@type response() :: {:ok, non_neg_integer(), map(), binary()}
@type result() :: response() | {:error, term()}

Functions

Link to this function

get(url, headers \\ [], timeout_or_options \\ 15000)

View Source
This function is deprecated. use Disposable.load_url/1 for domain sources.
@spec get(String.t(), [{String.t(), String.t()}], pos_integer() | keyword()) ::
  result()

Performs a bounded GET request.

The third argument remains a timeout integer for compatibility. It also accepts the Disposable URL options keyword list.