MCPcopy
hub / github.com/gofiber/fiber / All

Method All

register.go:51–55  ·  view source on GitHub ↗

All registers a middleware route that will match requests with the provided path which is stored in register struct. app.RouteChain("/").All(func(c fiber.Ctx) error { return c.Next() }) app.RouteChain("/api").All(func(c fiber.Ctx) error { return c.Next() }) app.RouteChain("/api").A

(handler any, handlers ...any)

Source from the content-addressed store, hash-verified

49//
50// This method will match all HTTP verbs: GET, POST, PUT, HEAD etc...
51func (r *Registering) All(handler any, handlers ...any) Register {
52 converted := collectHandlers("register", append([]any{handler}, handlers...)...)
53 r.app.register([]string{methodUse}, r.path, r.group, converted...)
54 return r
55}
56
57// Get registers a route for GET methods that requests a representation
58// of the specified resource. Requests using GET should only retrieve data.

Callers

nothing calls this directly

Calls 2

collectHandlersFunction · 0.85
registerMethod · 0.80

Tested by

no test coverage detected