Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/mislav/hub
/ isGraphQL
Function
isGraphQL
github/http.go:310–312 ·
view source on GitHub ↗
(req *http.Request)
Source
from the content-addressed store, hash-verified
308
}
309
310
func
isGraphQL(req *http.Request) bool {
311
return
req.URL.Path ==
"/graphql"
312
}
313
314
func
canCache(req *http.Request) bool {
315
return
strings.EqualFold(req.Method,
"GET"
) || isGraphQL(req)
Callers
2
canCache
Function · 0.85
cacheKey
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…