View Source Tesla.Middleware.Headers (tesla v1.12.1)
Set default headers for all requests
Examples
defmodule Myclient do
use Tesla
plug Tesla.Middleware.Headers, [{"user-agent", "Tesla"}]
end
Set default headers for all requests
defmodule Myclient do
use Tesla
plug Tesla.Middleware.Headers, [{"user-agent", "Tesla"}]
end