tesla v0.10.0 Tesla.Middleware.DecodeRels View Source
Decode Link
Hypermedia HTTP header into opts[:rels]
field in response.
Example usage
defmodule MyClient do
use Tesla
plug Tesla.Middleware.DecodeRels
end
env = MyClient.get("/...")
env.opts[:rels] # => %{"Next" => "http://...", "Prev" => "..."}
Link to this section Summary
Functions
Callback implementation for Tesla.Middleware.call/3
Link to this section Functions
Callback implementation for Tesla.Middleware.call/3
.