flickrex v0.5.0 Flickrex.Request.HttpClient behaviour View Source

Specifies HTTP client behaviour.

Link to this section Summary

Link to this section Types

Link to this type body() View Source
body() :: binary | nil
Link to this type error_t() View Source
error_t() :: {:error, %{reason: any}}
Link to this type headers() View Source
headers() :: [{binary, binary}]
Link to this type http_opts() View Source
http_opts() :: list
Link to this type method() View Source
method() :: atom | binary
Link to this type status() View Source
status() :: pos_integer
Link to this type success_content() View Source
success_content() :: %{status_code: pos_integer, headers: headers, body: body}
Link to this type success_t() View Source
success_t() :: {:ok, success_content}

Link to this section Callbacks

Link to this callback request(method, url, body, headers, http_opts) View Source