# Functions
CreateAndSetAuthToken creates and sets the authorization token Requires that the config has been set up before calling.
DoGet is a wrapper around performing HTTP GET requests.
DoPost is a wrapper around performing HTTP POST requests.
DoPostChunked is a wrapper around performing HTTP POST requests that stream chunked data.
GetAuthToken gets the session token.
GetClient is a convenience function returning an http client `GetClient(false)` must be used only for HTTP requests whose destination is localhost (ie, for Agent commands).
GetDCAAuthToken gets the session token.
InitDCAAuthToken initialize the session token for the Cluster Agent based on config options Requires that the config has been set up before calling.
IsForbidden returns whether the cluster check runner server is allowed to listen on a given ip The function is a non-secure helper to help avoiding setting an IP that's too permissive.
IsIPv6 is used to differentiate between ipv4 and ipv6 addresses based on colons.
SetAuthToken sets the session token Requires that the config has been set up before calling.
Validate validates an http request.
ValidateDCARequest is used for the exposed endpoints of the DCA.