View Source K8s.Client.Provider behaviour (k8s v1.1.1)
HTTP Request / Response provider behaviour
Link to this section Summary
Callbacks
Handle HTTP Responses
Generate headers for HTTP Requests
Deprecated! Use headers/1 instead
Perform HTTP Requests
Link to this section Types
Specs
error_t() :: {:error, K8s.Client.APIError.t() | HTTPoison.Response.t() | HTTPoison.Error.t()}
Specs
Specs
Link to this section Callbacks
Specs
handle_response( {:ok, HTTPoison.Response.t() | HTTPoison.AsyncResponse.t()} | {:error, HTTPoison.Error.t()} ) :: response_t()
Handle HTTP Responses
Specs
headers(K8s.Conn.RequestOptions.t()) :: keyword()
Generate headers for HTTP Requests
Specs
headers(atom(), K8s.Conn.RequestOptions.t()) :: [{binary(), binary()}]
Deprecated! Use headers/1 instead
Specs
Perform HTTP Requests