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

Set default headers for all requests

examples

Examples

defmodule Myclient do
  use Tesla

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