ExCurlImpersonate.Response (ex_curl_impersonate v0.2.0)
View SourceA valid response returned by ExCurlImpersonate.
headers - the headers of the final response (headers of redirect hops and interim 1xx responses are dropped).
Repeated headers are joined with ", ", except set-cookie, which is always a list of every cookie the server set.
http_version - the HTTP version used for the response (:http1_0, :http1_1, :http2, :http3).
Metrics
When the return_metrics option is set to true for a request, the metrics field will be populated with a %ExCurlImpersonate.ResponseMetrics{} value.
For example:
iex> ExCurlImpersonate.get!("https://httpbin.org/get", return_metrics: true)
%ExCurlImpersonate.Response{status_code: 200, metrics: %ExCurlImpersonate.ResponseMetrics{}, ...}