View Source Tw.HTTP.Client behaviour (Tw v0.1.1)
HTTP Client contract.
Link to this section Summary
Types
Module which implements the Tw.HTTP.Client behavior.
Callbacks
Callback to make an HTTP request.
Link to this section Types
Specs
body() :: binary()
Specs
Specs
implementation() :: module()
Module which implements the Tw.HTTP.Client behavior.
Specs
method() :: atom()
Specs
options() :: keyword()
Specs
Specs
result() :: {:ok, response()} | {:error, Exception.t()}
Specs
status() :: non_neg_integer()
Specs
url() :: binary()
Link to this section Callbacks
Specs
Callback to make an HTTP request.