Marvin.HttpClient behaviour (Marvin Load Test v0.1.0) View Source

Link to this section Summary

Link to this section Functions

Link to this function

format_response(response)

View Source

Specs

format_response(
  {:error,
   %{
     :__exception__ => any(),
     :__struct__ => Mint.HTTPError | Mint.TransportError,
     :reason => any(),
     optional(:module) => any()
   }}
  | {:ok, Finch.Response.t()}
) :: :ok | {:error, any()}

Specs

request(Marvin.Config.endpoint()) :: :ok | {:error, [{atom(), binary()}, ...]}

Link to this section Callbacks

Specs

request(Marvin.Config.endpoint()) :: :ok | {:error, [{atom(), binary()}, ...]}