tesla v0.10.0 Tesla.Middleware.Headers View Source

Set default headers for all requests

Example usage

defmodule Myclient do
  use Tesla

  plug Tesla.Middleware.Headers, %{"User-Agent" => "Tesla"}
end

Link to this section Summary

Link to this section Functions

Link to this function call(env, next, headers) View Source

Callback implementation for Tesla.Middleware.call/3.