Packages

Elixir client for the ORY Hydra administrative API

Current section

Files

Jump to
ory_hydra lib ory hydra client.ex
Raw

lib/ory/hydra/client.ex

defmodule ORY.Hydra.Client do
@type response_t ::
%{
body: String.t(),
headers: ORY.Hydra.http_headers_t(),
status_code: pos_integer
}
@callback request(
method :: ORY.Hydra.http_method_t(),
url :: String.t(),
headers :: ORY.Hydra.http_headers_t(),
body :: String.t(),
opts :: any
) :: { :ok, response_t() } | { :error, any }
end