The flexible HTTP client library for Elixir, with support for middleware and multiple adapters. Tesla is an HTTP client loosely based on Faraday. It embraces the concept of middleware when processing the request/response cycle. Define module with use Tesla and choose from a variety of middleware. Tesla is built around the concept of composable middlewares. This is very similar to how Plug Router works. All HTTP functions, such as Tesla.get/3 and Tesla.post/4, can take a dynamic client as the first argument. This allows using convenient syntax for modifying the behavior in runtime. Tesla supports multiple HTTP adapter that do the actual HTTP request processing. Each piece of the stream will be encoded as JSON and sent as a new line (conforming to JSON stream format). You can set the adapter to Tesla.Mock in tests.

Features

  • Define module with use Tesla and choose from a variety of middleware
  • Configure default adapter in config/config.exs (optional)
  • Tesla uses Semantic Versioning 2.0
  • Tesla is built around the concept of composable middlewares
  • Runtime middleware
  • Tesla supports multiple HTTP adapter that do the actual HTTP request processing

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Tesla

Tesla Web Site

Other Useful Business Software
Ship AI Apps Faster with Vertex AI Icon
Ship AI Apps Faster with Vertex AI

Go from idea to deployed AI app without managing infrastructure. Vertex AI offers one platform for the entire AI development lifecycle.

Ship AI apps and features faster with Vertex AI—your end-to-end AI platform. Access Gemini 3 and 200+ foundation models, fine-tune for your needs, and deploy with enterprise-grade MLOps. Build chatbots, agents, or custom models. New customers get $300 in free credit.
Try Vertex AI Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Tesla!

Additional Project Details

Programming Language

Elixir

Related Categories

Elixir HTML XHTML, Elixir Libraries, Elixir HTTP Clients

Registered

2022-10-07