- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestWithContentType (0.12 sec)
-
staging/src/k8s.io/apiserver/pkg/server/filters/content_type_test.go
import ( "net/http" "net/http/httptest" "testing" ) func noopHandler() http.HandlerFunc { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { // noop }) } func TestWithContentType(t *testing.T) { mux := http.NewServeMux() mux.Handle("/text", WithContentType(noopHandler(), "text/plain")) mux.Handle("/json", WithContentType(noopHandler(), "application/json")) tests := []struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 04 23:35:32 UTC 2019 - 1.8K bytes - Viewed (0)