Resend.Client.TeslaClient (resend v0.4.0)
Tesla client for Resend. This is the default HTTP client used.
Link to this section 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.
Link to this section Functions
Link to this function
new(client)
@spec new(Resend.Client.t()) :: Tesla.Client.t()
Returns a new Tesla.Client
, configured for calling the Resend API.
Link to this function
request(client, opts)
@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.