- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for serverFunc (0.16 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/roundtripper_test.go
clientTLS *tls.Config proxyAuth *url.Userinfo serverConnectionHeader string serverFunc serverFunc serverStatusCode int serverUpgradeHeader string shouldError bool }{ "proxied without auth -> http": { serverFunc: httptest.NewServer, serverConnectionHeader: "Upgrade", serverStatusCode: http.StatusSwitchingProtocols,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 23 22:33:38 UTC 2023 - 32.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/proxy/upgradeaware_test.go
testcases := map[string]struct { ServerFunc func(http.Handler) *httptest.Server ProxyTransport http.RoundTripper UpgradeTransport UpgradeRequestRoundTripper ExpectedAuth string }{ "http": { ServerFunc: httptest.NewServer, ProxyTransport: nil, }, "both client and server support http2, but force to http/1.1 for upgrade": { ServerFunc: func(h http.Handler) *httptest.Server {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 10 07:29:34 UTC 2023 - 39.4K bytes - Viewed (0) -
docs/iam/access-manager-plugin.go
json.NewEncoder(w).Encode(res) return } func main() { flag.Parse() serveFunc := func() error { return http.ListenAndServe(":8080", nil) } if certFile != "" || keyFile != "" { if certFile == "" || keyFile == "" { log.Fatal("Please provide both a key file and a cert file to enable TLS.") } serveFunc = func() error { return http.ListenAndServeTLS(":8080", certFile, keyFile, nil) } }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Feb 08 17:15:20 UTC 2024 - 2.7K bytes - Viewed (0)