IndieWeb v0.0.37 IndieWeb.Http.Adapter behaviour View Source
Provides an abstraction on handling HTTP actions.
Link to this section Summary
Callbacks
Defines the method for making a general HTTP request
Link to this section Callbacks
Link to this callback
request(uri, method, opts)
View Source
request(uri, method, opts)
View Source
request(uri :: binary(), method :: atom(), opts :: keyword()) ::
{:ok, IndieWeb.Http.Response.t()} | {:error, IndieWeb.Http.Error.t()}
request(uri :: binary(), method :: atom(), opts :: keyword()) :: {:ok, IndieWeb.Http.Response.t()} | {:error, IndieWeb.Http.Error.t()}
Defines the method for making a general HTTP request.