Req.range
You're seeing just the function
range
, go back to Req module for more information.
Sets the "Range" request header.
range
can be one of the following:
a string - returned as is
a
first..last
range - converted to"bytes=<first>-<last>"
Examples
iex> Req.get!("https://repo.hex.pm/builds/elixir/builds.txt", range: 0..67)
%{
status: 206,
headers: [
{"content-range", "bytes 0-67/45400"},
...
],
body: "master df65074a8143cebec810dfb91cafa43f19dcdbaf 2021-04-23T15:36:18Z"
}