Req.prepend_default_steps
prepend_default_steps
, go back to Req module for more information.
Prepends steps that should be reasonable defaults for most users.
Request steps
&netrc(&1, options[:netrc])
(ifoptions[:netrc]
is set to an atom true for default path or a string for custom path)&auth(&1, options[:auth])
(ifoptions[:auth]
is set to)¶ms(&1, options[:params])
(ifoptions[:params]
is set)&range(&1, options[:range])
(ifoptions[:range]
is set)
Response steps
&retry(&1, &2, options[:retry])
(ifoptions[:retry]
is set to an atom true or a options keywords list)
Error steps
&retry(&1, &2, options[:retry])
(ifoptions[:retry]
is set and is a keywords list or an atomtrue
)
Options
:netrc
- if set, adds thenetrc/2
step:auth
- if set, adds theauth/2
step:params
- if set, adds theparams/2
step:range
- if set, adds therange/2
step:cache
- if set totrue
, addsif_modified_since/2
step:raw
if set totrue
, skipsdecompress/2
anddecode/2
steps:retry
- if set, adds theretry/3
step to response and error steps