Benchmark_App_MethodNotAllowed() — fiber Function Reference
Architecture documentation for the Benchmark_App_MethodNotAllowed() function in router_test.go from the fiber codebase.
Entity Profile
Dependency Diagram
graph TD 20ccfaf2_27c3_ab98_b843_342f5ae14175["Benchmark_App_MethodNotAllowed()"] 326d7e00_9e4f_d854_0c78_b9c0c93e5537["router_test.go"] 20ccfaf2_27c3_ab98_b843_342f5ae14175 -->|defined in| 326d7e00_9e4f_d854_0c78_b9c0c93e5537 style 20ccfaf2_27c3_ab98_b843_342f5ae14175 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
router_test.go lines 1509–1528
func Benchmark_App_MethodNotAllowed(b *testing.B) {
app := New()
h := func(c Ctx) error {
return c.SendString("Hello World!")
}
app.All("/this/is/a/", h)
app.Get("/this/is/a/dummy/route/oke", h)
appHandler := app.Handler()
c := &fasthttp.RequestCtx{}
c.Request.Header.SetMethod("DELETE")
c.URI().SetPath("/this/is/a/dummy/route/oke")
for b.Loop() {
appHandler(c)
}
require.Equal(b, 405, c.Response.StatusCode())
require.Equal(b, MethodGet+", "+MethodHead, string(c.Response.Header.Peek("Allow")))
require.Equal(b, utils.StatusMessage(StatusMethodNotAllowed), string(c.Response.Body()))
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does Benchmark_App_MethodNotAllowed() do?
Benchmark_App_MethodNotAllowed() is a function in the fiber codebase, defined in router_test.go.
Where is Benchmark_App_MethodNotAllowed() defined?
Benchmark_App_MethodNotAllowed() is defined in router_test.go at line 1509.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free