Tesla.Client.adapter
You're seeing just the function
adapter
, go back to Tesla.Client module for more information.
Specs
Returns the client's adapter in the same form it was provided. This can be used to copy an adapter from one client to another.
Examples
iex> client = Tesla.client([], {Tesla.Adapter.Hackney, [recv_timeout: 30_000]})
iex> Tesla.Client.adapter(client)
{Tesla.Adapter.Hackney, [recv_timeout: 30_000]}