View Source ExCurl.Response (ex_curl v0.3.0)
A valid response returned by ExCurl.
Metrics
When the return_metrics
option is set to true
for a request, the metrics
field will be populated with a %ExCurl.ResponseMetrics{}
value.
For example:
iex> ExCurl.get!("https://httpbin.org/get", return_metrics: true)
%ExCurl.Response{status_code: 200, metrics: %ExCurl.ResponseMetrics{}, ...}
Summary
Types
@type t() :: %ExCurl.Response{ body: nil | String.t(), headers: map(), metrics: nil | ExCurl.ResponseMetrics.t(), status_code: integer() }