View Source Chalk behaviour (chalk_elixir v0.0.12)

An HTTP Client for the Chalk Feature Engine

Chalk Documentation

Link to this section Summary

Link to this section Types

@type mapper() :: (any() -> any())

Link to this section Callbacks

Link to this callback

handle_response(arg1, mapper)

View Source
@callback handle_response({:ok, Tesla.Env.t()} | {:error, any()}, mapper()) ::
  {:ok, term()} | {:error, Chalk.Error.t()} | {:error, any()}
@callback send_request(Chalk.Client.Request.t(), Tesla.Client.t()) ::
  {:ok, Tesla.Env.t()} | {:error, any()}