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

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

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()
Link to this function

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

View Source
@spec stream_to(
  method :: atom(),
  uri :: URI.t(),
  body :: binary(),
  headers :: list(),
  http_opts :: keyword(),
  stream_to :: pid()
) :: K8s.Client.Provider.stream_to_response_t()
@spec uri_to_path(URI.t()) :: binary()