Burrito.Util (burrito v1.6.0)

View Source

Summary

Functions

Gets the HTTP or HTTPS proxy from environment variables, if set.

Checks if the application is currently running as a standalone Burrito release, or via some other mechanism, such as an escript.

Functions

get_current_cpu()

get_current_os()

@spec get_current_os() :: :darwin | :linux | :windows

get_otp_version()

@spec get_otp_version() :: String.t()

get_proxy()

@spec get_proxy() :: URI.t() | nil

Gets the HTTP or HTTPS proxy from environment variables, if set.

  1. Checks HTTP_PROXY and http_proxy
  2. Checks HTTPS_PROXY and https_proxy
  3. Returns nil if no proxy is set

running_standalone?()

@spec running_standalone?() :: boolean()

Checks if the application is currently running as a standalone Burrito release, or via some other mechanism, such as an escript.