tesla v0.10.0 API Reference

Modules

A HTTP toolkit for building API clients using middlewares

Set base URL for all requests

Basic authentication middleware

Only compress request

Compress requests and decompress responses

Log full reqeust/response content

Decode Link Hypermedia HTTP header into opts[:rels] field in response

Only decompress response

Digest access authentication middleware

Follow 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

Log requests as single line

Middleware that adds X-Http-Method-Override header with original request method and sends the request as post

Set default opts for all requests

Set default query params for all requests

Retry few times in case of connection refused error

Timeout http request after X seconds

Return :ok / :error tuples for successful HTTP transations, i.e. when the request is completed (no network errors etc) - but it can still be an application-level error (i.e. 404 or 500)

Mock adapter for better testing

Multipart functionality

Exceptions