HttpBuilder v0.4.1 HttpBuilder.Adapter behaviour View Source
The HttpBuilder Adapter takes a Http.Request, and converts it to an outgoing call.
Link to this section Summary
Callbacks
Send is the only method required for this behaviour
Link to this section Types
Link to this section Callbacks
Send is the only method required for this behaviour.
It should take a response, initiate a request, and return a standard two item tuple of {:ok, response } or {:error, reason }. It sets no expectations about the content of a successful response, to allow for more flexibility in the result.
See HttpBuilder.Adapter.HTTPoison
for an example.