View Source K8s.Client.Mint.HTTP (k8s v2.0.0-rc.0)

HTTP request implementation of Mint based K8s.Client.Provider

Link to this section Summary

Link to this section Types

@type t() :: %K8s.Client.Mint.HTTP{
  conn: Mint.HTTP.t(),
  request_ref: Mint.Types.request_ref() | nil
}

Link to this section Functions

@spec connect(URI.t(), Keyword.t()) ::
  {:error, K8s.Client.HTTPError.t()} | {:ok, Mint.HTTP.t()}
Link to this function

request(method, uri, body, headers, http_opts)

View Source
@spec request(
  method :: atom(),
  uri :: URI.t(),
  body :: binary(),
  headers :: list(),
  http_opts :: keyword()
) :: K8s.Client.Provider.response_t()
Link to this function

stream(method, uri, body, headers, http_opts)

View Source
@spec stream(
  method :: atom(),
  uri :: URI.t(),
  body :: binary(),
  headers :: list(),
  http_opts :: keyword()
) :: K8s.Client.Provider.stream_response_t()