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

Set default headers for all requests

Examples

defmodule Myclient do
  def client do
    Tesla.client([
      {Tesla.Middleware.Headers, [{"user-agent", "Tesla"}]}
    ])
  end
end