MCPcopy Index your code
hub / github.com/apache/answer / HeadersByRequestURI

Function HeadersByRequestURI

internal/base/middleware/header.go:28–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26)
27
28func HeadersByRequestURI() gin.HandlerFunc {
29 return func(c *gin.Context) {
30 if strings.HasPrefix(c.Request.RequestURI, "/static/") {
31 c.Header("cache-control", "public, max-age=31536000")
32 }
33 }
34}

Callers 1

NewHTTPServerFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected