MCPcopy 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
128func 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

serveLongPollFunction · 0.85
serveWebSocketFunction · 0.85

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected