View Source API Reference tesla v1.8.0
Modules
A HTTP toolkit for building API clients using middlewares.
The adapter specification.
Adapter for finch.
Adapter for gun.
Adapter for hackney.
Adapter for httpc.
Adapter for ibrowse.
Adapter for mint.
This module defines a Tesla.Env.t/0
struct that stores all data related to request/response.
The middleware specification.
Set base URL for all requests.
Basic authentication middleware.
Bearer authentication middleware.
Only compress request.
Compress requests and decompress responses.
Decodes response body as JSON.
Decode Link
Hypermedia HTTP header into opts[:rels]
field in response.
Only decompress response.
Digest access authentication middleware.
Encodes request body as JSON.
Follow HTTP 3xx redirects.
Send request body as application/x-www-form-urlencoded
.
Circuit Breaker middleware using fuse.
Set default headers for all requests
Encode requests and decode responses as JSON.
Store request url ,body and headers into :opts
.
Log requests using Elixir's Logger.
Encode requests and decode responses as MessagePack.
Middleware that adds X-HTTP-Method-Override
header with original request
method and sends the request as post.
Set default opts for all requests.
Use templated URLs with separate params.
Set default query params for all requests
Retry using exponential backoff and full jitter.
Emits events using the :telemetry
library to expose instrumentation.
Timeout HTTP request after X milliseconds.
Mock adapter for better testing.
Multipart functionality.