View Source Tesla.Middleware.DecodeRels (tesla v1.7.0)
Decode Link
Hypermedia HTTP header into opts[:rels]
field in response.
examples
Examples
defmodule MyClient do
use Tesla
plug Tesla.Middleware.DecodeRels
end
env = MyClient.get("/...")
env.opts[:rels]
# => %{"Next" => "http://...", "Prev" => "..."}