MCPcopy Create free account
hub / github.com/cortexproject/cortex / IsEnabled

Method IsEnabled

pkg/util/http.go:46–48  ·  view source on GitHub ↗

IsEnabled returns false if basic authentication isn't enabled.

()

Source from the content-addressed store, hash-verified

44
45// IsEnabled returns false if basic authentication isn't enabled.
46func (b BasicAuth) IsEnabled() bool {
47 return b.Username != "" || b.Password.Value != ""
48}
49
50// WriteJSONResponse writes some JSON as a HTTP response.
51func WriteJSONResponse(w http.ResponseWriter, v any) {

Callers 1

amConfigFromURLFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected