View Source K8s.Middleware.Request behaviour (k8s v2.4.2)

HTTP Request middleware

Summary

Types

t()

Middleware Request type

Callbacks

Request middleware callback

Types

@type t() :: %K8s.Middleware.Request{
  body: String.t() | map() | [map()] | nil,
  conn: K8s.Conn.t(),
  headers: Keyword.t() | nil,
  method: atom(),
  opts: Keyword.t() | nil,
  uri: URI.t()
}

Middleware Request type

Callbacks

@callback call(t()) :: {:ok, t()} | {:error, any()}

Request middleware callback