pagantis_elixir_tools v0.21.3 ElixirTools.HttpClient
The HttpClient
module handles HTTP(s) interactions with remote services.
Link to this section Summary
Link to this section Types
Link to this type
action()
Specs
action() :: :get | :create | :update
Link to this type
adapter()
Specs
adapter() :: module()
Link to this type
base_uri()
Specs
base_uri() :: String.t()
Link to this type
header()
Specs
Link to this type
path()
Specs
path() :: String.t()
Link to this type
post_opt()
Specs
Link to this type
put_opt()
Specs
Link to this type
query()
Specs
query() :: String.t()
Link to this type
request_body()
Specs
request_body() :: String.t()
Link to this type
response_body()
Specs
response_body() :: HTTPoison.Response.t()
Link to this type
uri()
Specs
uri() :: URI.t()
Link to this section Functions
Link to this function
get(adapter, path, opts \\ [])
Specs
get(adapter(), path(), [post_opt()]) :: {:ok, response_body()} | {:error, term()}
Link to this function
post(adapter, path, request_body, opts \\ [])
Specs
post(adapter(), path(), request_body(), [post_opt()]) :: {:ok, response_body()} | {:error, term()}
Link to this function
put(adapter, path, request_body, opts \\ [])
Specs
put(adapter(), path(), request_body(), [put_opt()]) :: {:ok, response_body()} | {:error, term()}