MCPcopy
hub / github.com/gin-gonic/gin / handle

Method handle

routergroup.go:86–91  ·  view source on GitHub ↗
(httpMethod, relativePath string, handlers HandlersChain)

Source from the content-addressed store, hash-verified

84}
85
86func (group *RouterGroup) handle(httpMethod, relativePath string, handlers HandlersChain) IRoutes {
87 absolutePath := group.calculateAbsolutePath(relativePath)
88 handlers = group.combineHandlers(handlers)
89 group.engine.addRoute(httpMethod, absolutePath, handlers)
90 return group.returnObj()
91}
92
93// Handle registers a new request handle and middleware with the given path and method.
94// The last handler should be the real handler, the other ones should be middleware that can and should be shared among different routes.

Callers 10

HandleMethod · 0.95
POSTMethod · 0.95
GETMethod · 0.95
DELETEMethod · 0.95
PATCHMethod · 0.95
PUTMethod · 0.95
OPTIONSMethod · 0.95
HEADMethod · 0.95
AnyMethod · 0.95
MatchMethod · 0.95

Calls 4

calculateAbsolutePathMethod · 0.95
combineHandlersMethod · 0.95
returnObjMethod · 0.95
addRouteMethod · 0.45

Tested by

no test coverage detected