MCPcopy
hub / github.com/rodrigo-brito/gocity / Middleware

FuncType Middleware

handle/middlewares/headers.go:10–10  ·  view source on GitHub ↗
func(http.Handler) http.Handler

Source from the content-addressed store, hash-verified

8const cookieKey = "gocity_api"
9
10type Middleware func(http.Handler) http.Handler
11
12func setAPICookie(w http.ResponseWriter, url string) {
13 expire := time.Now().Add(24 * time.Hour)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected