What is a Tesla client?
masterIn Tesla, a client is the central entity that combines middleware and an adapter.
- Middleware: Components that modify or enhance requests and responses (e.g., adding headers, handling authentication, or logging).
- Adapters: Components that handle the actual underlying HTTP communication.
You create a client using Tesla.client/2 to bundle these behaviors together for making HTTP requests.
client = Tesla.client([Tesla.Middleware.PathParams, Tesla.Middleware.Logger])