Mockingbird v0.0.2 Mockingbird.HTTPoisonHttpClient
This is the live client. It’s where Mockingbird routes the live calls to by default.
Summary
Functions
This will instruct HTTPoison to perform the request
Functions
call(verb, url, body \\ %{}, headers \\ %{})
call(atom, binary, map | binary, map) :: {:ok, HTTPoison.Response.t} | {:error, HTTPoison.Error.t}
This will instruct HTTPoison to perform the request.
Return HTTPoison normal values (an {:ok, response}
tuple if the request is
fulfilled, an {:error, error}
tuple if the request cannot be performed)
The first parameter must be one of the following atoms: :delete
, :get
,
:head
, :options
, :patch
, :post
.
The query string for a get call can be either incorporated in the url or passed as a map. The body for all other methods need to be a binary (e.g.: a string with a JSON-encoded structure).