MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / websocketClientTLSConfig

Function websocketClientTLSConfig

carrier/websocket_test.go:23–30  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

21)
22
23func websocketClientTLSConfig(t *testing.T) *tls.Config {
24 certPool := x509.NewCertPool()
25 helloCert, err := tlsconfig.GetHelloCertificateX509()
26 assert.NoError(t, err)
27 certPool.AddCert(helloCert)
28 assert.NotNil(t, certPool)
29 return &tls.Config{RootCAs: certPool}
30}
31
32func TestWebsocketHeaders(t *testing.T) {
33 req := testRequest(t, "http://example.com", nil)

Callers 2

TestServeFunction · 0.85
TestWebsocketWrapperFunction · 0.85

Calls 1

GetHelloCertificateX509Function · 0.92

Tested by

no test coverage detected