- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for forbiddenMessage (0.21 sec)
-
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/errors.go
// Forbidden renders a simple forbidden error func Forbidden(ctx context.Context, attributes authorizer.Attributes, w http.ResponseWriter, req *http.Request, reason string, s runtime.NegotiatedSerializer) { msg := sanitizer.Replace(forbiddenMessage(attributes)) w.Header().Set("X-Content-Type-Options", "nosniff") var errMsg string if len(reason) == 0 { errMsg = fmt.Sprintf("%s", msg) } else { errMsg = fmt.Sprintf("%s: %s", msg, reason) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 21 16:18:47 UTC 2018 - 2.8K bytes - Viewed (0) -
platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/LoggingIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:05:18 UTC 2023 - 15.6K bytes - Viewed (0)