k8s v0.5.0-rc.2 K8s.Middleware.Request behaviour

HTTP Request middleware

Link to this section Summary

Types

t()

Middleware Request type

Callbacks

Request middleware callback

Link to this section Types

Link to this type

t()

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

Link to this callback

call(t)

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

Request middleware callback