View Source K8s.Client.Provider behaviour (k8s v1.1.5)
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
Link to this section Callbacks
@callback handle_response( {:ok, HTTPoison.Response.t() | HTTPoison.AsyncResponse.t()} | {:error, HTTPoison.Error.t()} ) :: response_t()
Handle HTTP Responses
@callback headers(K8s.Conn.RequestOptions.t()) :: keyword()
Generate headers for HTTP Requests
@callback headers(atom(), K8s.Conn.RequestOptions.t()) :: [{binary(), binary()}]
Deprecated! Use headers/1 instead
Perform HTTP Requests