# Functions

CheckAuthFlag checks whether the given authKey is set and valid Falls back to checkBasicAuth if authKey is not set.
CheckBasicAuth validates credentials provided in request if httpAuth.* flags are set returns true if credentials are valid or httpAuth.* flags are not set.
EnableCORS enables https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS on the response.
Errorf writes formatted error message to w and to logger.
GetPathPrefix - returns http server path prefix.
GetQuotedRemoteAddr returns quoted remote address.
GetRequestURI returns requestURI for r.
IsTLS indicates is tls enabled or not for -httpListenAddr at the given idx.
LogError logs the errStr with the context from req.
ParsePath parses the given path.
No description provided by the author
Redirect redirects to the given url.
SendPrometheusError sends err to w in Prometheus querying API response format.
Serve starts an http server on the given addrs with the given optional rh.
ServeWithOpts starts an http server on the given addrs with the given optional request handlers.
Stop stops the http server on the given addrs, which has been started via Serve func.
No description provided by the author
WriteAPIHelp writes pathList to w in HTML format.
No description provided by the author

# Structs

ErrorWithStatusCode is error with HTTP status code.
Path contains the following path structure: /{prefix}/{authToken}/{suffix} It is compatible with SaaS version.
ServeOptions defiens optional parameters for http server.
UserReadableError is a type of error which supposed to be returned to the user without additional context.

# Type aliases

RequestHandler must serve the given request r and write response to w.