Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/daodst/chat
/ getApiKey
Function
getApiKey
server/main.go:128–134 ·
view source on GitHub ↗
(req *http.Request)
Source
from the content-addressed store, hash-verified
126
}
127
128
func
getApiKey(req *http.Request) string {
129
apikey := req.FormValue(
"apikey"
)
130
if
apikey ==
""
{
131
apikey = req.Header.Get(
"X-Tinode-APIKey"
)
132
}
133
return
apikey
134
}
Callers
2
serveLongPoll
Function · 0.85
serveWebSocket
Function · 0.85
Calls
1
Get
Method · 0.65
Tested by
no test coverage detected