View Source Nexlm.HTTPClient behaviour (Nexlm v0.1.15)

Behaviour describing the contract used by Nexlm provider HTTP clients.

Custom implementations should mimic the tuple return shape produced by Req.post/2, returning either {:ok, response} or {:error, reason}.

Summary

Callbacks

@callback post(
  String.t(),
  keyword()
) :: {:ok, map()} | {:error, map()}