k8s v0.2.1 K8s.Behaviours.HTTPProvider behaviour

HTTP Request / Response provider behaviour

Link to this section Summary

Link to this section Callbacks

Link to this callback

handle_response(arg0)
handle_response(
  {:ok, HTTPoison.Response.t() | HTTPoison.AsyncResponse.t()}
  | {:error, HTTPoison.Error.t()}
) :: {:ok, map()} | {:ok, reference()} | {:error, binary()}

Link to this callback

headers(arg0)
headers(K8s.Conf.RequestOptions.t()) :: [{binary(), binary()}]

Link to this callback

request(atom, binary, binary, keyword, keyword)
request(atom(), binary(), binary(), keyword(), keyword()) ::
  {:ok, map()} | {:ok, reference()} | {:error, atom()} | {:error, binary()}