View Source K8s.Middleware.Request behaviour (k8s v1.1.1)

HTTP Request middleware

Link to this section Summary

Types

t()

Middleware Request type

Callbacks

Request middleware callback

Link to this section Types

Specs

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

Middleware Request type

Link to this section Callbacks

Specs

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

Request middleware callback