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

Method Handler

gin.go:243–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

241}
242
243func (engine *Engine) Handler() http.Handler {
244 if !engine.UseH2C {
245 return engine
246 }
247
248 h2s := &http2.Server{}
249 return h2c.NewHandler(engine, h2s)
250}
251
252func (engine *Engine) allocateContext(maxParams uint16) *Context {
253 v := make(Params, 0, maxParams)

Callers 8

RunMethod · 0.95
RunTLSMethod · 0.95
RunUnixMethod · 0.95
RunQUICMethod · 0.95
RunListenerMethod · 0.95
TestContextHandlerFunction · 0.45
TestH2cFunction · 0.45

Calls

no outgoing calls

Tested by 3

TestContextHandlerFunction · 0.36
TestH2cFunction · 0.36