View Source Resend.Client.TeslaClient (resend v0.4.4)

Tesla client for Resend. This is the default HTTP client used.

Summary

Functions

Returns a new Tesla.Client, configured for calling the Resend API.

Sends a request to a Resend API endpoint, given list of request opts.

Functions

@spec new(Resend.Client.t()) :: Tesla.Client.t()

Returns a new Tesla.Client, configured for calling the Resend API.

@spec request(Resend.Client.t(), Keyword.t()) ::
  {:ok, %{body: map(), status: pos_integer()}} | {:error, any()}

Sends a request to a Resend API endpoint, given list of request opts.