Cepex.HTTP behaviour (cepex v0.1.0) View Source
This is the behaviour to implement HTTP clients to use with Cepex. The library has a
built-in implementation of hackney (check Cepex.HTTP.Hackney).
Link to this section Summary
Callbacks
Performs a GET HTTP request with the given parameters and returns a Cepex.HTTP.Response
struct, when successful.
Link to this section Types
Specs
Specs
url() :: String.t()
Link to this section Callbacks
Specs
get(url :: String.t(), headers :: [header()]) :: {:ok, Cepex.HTTP.Response.t()} | {:error, any()}
Performs a GET HTTP request with the given parameters and returns a Cepex.HTTP.Response
struct, when successful.