Test_Compress_Vary_Similar_Substring() — fiber Function Reference
Architecture documentation for the Test_Compress_Vary_Similar_Substring() function in compress_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD eed40925_b8de_b930_aafa_9934870acd2b["Test_Compress_Vary_Similar_Substring()"] d6d930a5_a4c6_37a5_5df5_4b38486d6fe6["compress_test.go"] eed40925_b8de_b930_aafa_9934870acd2b -->|defined in| d6d930a5_a4c6_37a5_5df5_4b38486d6fe6 style eed40925_b8de_b930_aafa_9934870acd2b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
middleware/compress/compress_test.go lines 248–265
func Test_Compress_Vary_Similar_Substring(t *testing.T) {
t.Parallel()
app := fiber.New()
app.Use(New())
app.Get("/", func(c fiber.Ctx) error {
c.Set(fiber.HeaderVary, "Accept-Encoding2")
return c.SendString("hello")
})
req := httptest.NewRequest(fiber.MethodGet, "/", http.NoBody)
req.Header.Set("Accept-Encoding", "gzip")
resp, err := app.Test(req, testConfig)
require.NoError(t, err, "app.Test(req)")
require.Equal(t, "Accept-Encoding2, Accept-Encoding", resp.Header.Get(fiber.HeaderVary))
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Test_Compress_Vary_Similar_Substring() do?
Test_Compress_Vary_Similar_Substring() is a function in the fiber codebase, defined in middleware/compress/compress_test.go.
Where is Test_Compress_Vary_Similar_Substring() defined?
Test_Compress_Vary_Similar_Substring() is defined in middleware/compress/compress_test.go at line 248.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free