sparrow v1.1.0 Sparrow.Client.Behaviour behaviour

Behaviour for your custom HTTP client implementation if you don't want to use hackney.

Link to this section Summary

Link to this section Callbacks

Link to this callback

request(url, headers, body, opts)

request(url :: String.t(), headers :: Enum.t(), body, opts :: Keyword.t()) ::
  {:ok, body} | {:error, term()}
when body: String.t()