Benchmark_Ctx_GetRespHeaders() — fiber Function Reference
Architecture documentation for the Benchmark_Ctx_GetRespHeaders() function in ctx_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD d42740f3_0c5c_8c02_f8e4_3f4a8e1791c1["Benchmark_Ctx_GetRespHeaders()"] 7b3d4933_5ae3_f84d_ff6d_0cb34e268026["ctx_test.go"] d42740f3_0c5c_8c02_f8e4_3f4a8e1791c1 -->|defined in| 7b3d4933_5ae3_f84d_ff6d_0cb34e268026 style d42740f3_0c5c_8c02_f8e4_3f4a8e1791c1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
ctx_test.go lines 7882–7902
func Benchmark_Ctx_GetRespHeaders(b *testing.B) {
app := New()
c := app.AcquireCtx(&fasthttp.RequestCtx{})
c.Response().Header.Set("test", "Hello, World 👋!")
c.Response().Header.Set("foo", "bar")
c.Response().Header.Set(HeaderContentType, "application/json")
b.ReportAllocs()
var headers map[string][]string
for b.Loop() {
headers = c.GetRespHeaders()
}
require.Equal(b, map[string][]string{
"Content-Type": {"application/json"},
"Foo": {"bar"},
"Test": {"Hello, World 👋!"},
}, headers)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Benchmark_Ctx_GetRespHeaders() do?
Benchmark_Ctx_GetRespHeaders() is a function in the fiber codebase, defined in ctx_test.go.
Where is Benchmark_Ctx_GetRespHeaders() defined?
Benchmark_Ctx_GetRespHeaders() is defined in ctx_test.go at line 7882.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free