Tesla.Middleware.Headers (tesla v1.4.0) View Source

Set default headers for all requests

Example usage

defmodule Myclient do
  use Tesla

  plug Tesla.Middleware.Headers, [{"user-agent", "Tesla"}]
end