Home / Function/ Test_App_SetTLSHandler() — fiber Function Reference

Test_App_SetTLSHandler() — fiber Function Reference

Architecture documentation for the Test_App_SetTLSHandler() function in app_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  ec41034d_f4f8_d3a4_3487_e882d81cfd60["Test_App_SetTLSHandler()"]
  e728fdd2_242f_706b_c1d2_041b3d6badb5["app_test.go"]
  ec41034d_f4f8_d3a4_3487_e882d81cfd60 -->|defined in| e728fdd2_242f_706b_c1d2_041b3d6badb5
  style ec41034d_f4f8_d3a4_3487_e882d81cfd60 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

app_test.go lines 2621–2634

func Test_App_SetTLSHandler(t *testing.T) {
	t.Parallel()
	tlsHandler := &TLSHandler{clientHelloInfo: &tls.ClientHelloInfo{
		ServerName: "example.golang",
	}}

	app := New()
	app.SetTLSHandler(tlsHandler)

	c := app.AcquireCtx(&fasthttp.RequestCtx{})
	defer app.ReleaseCtx(c)

	require.Equal(t, "example.golang", c.ClientHelloInfo().ServerName)
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does Test_App_SetTLSHandler() do?
Test_App_SetTLSHandler() is a function in the fiber codebase, defined in app_test.go.
Where is Test_App_SetTLSHandler() defined?
Test_App_SetTLSHandler() is defined in app_test.go at line 2621.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free