Bittrex v3.0.0 Bittrex.Client.Adapter behaviour View Source

The HTTP client adapter.

Link to this section Summary

Link to this section Types

Link to this type

error_response() View Source
error_response() :: %{reason: any()}

Link to this type

headers() View Source
headers() :: %{optional(binary()) => binary()}

Link to this type

method() View Source
method() :: :get | :post | :put | :patch | :delete | :options | :head

Link to this type

options() View Source
options() :: keyword() | any()

Link to this type

response() View Source
response() :: %{status_code: integer(), body: term(), headers: list()}

Link to this section Callbacks

Link to this callback

request(method, url, body, headers, options) View Source
request(method(), url(), body(), headers(), options()) ::
  {:ok, response()} | {:error, error_response()}