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

HTTP Request middleware

Link to this section Summary

Types

t()

Middleware Request type

Callbacks

Request middleware callback

Link to this section 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,
  url: String.t()
}

Middleware Request type

Link to this section Callbacks

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

Request middleware callback