Apicult.Request (Apicult v0.2.0) View Source

Link to this section Summary

Link to this section Types

Specs

request_error() ::
  NonSuccessResponseError.t() | Exception.t() | Jason.DecodeError.t()

Link to this section Functions

Link to this function

run_request(make_request, format_response)

View Source

Specs

run_request(
  make_request :: (() -> Finch.Request.t()),
  format_response :: (term() -> any())
) :: {:ok, any()} | {:error, request_error()}