MCPcopy Create free account
hub / github.com/codehamr/codehamr / AuthHeader

Function AuthHeader

internal/cloud/cloud.go:113–113  ·  view source on GitHub ↗

AuthHeader returns the Bearer header a cloud-routed request needs.

(token string)

Source from the content-addressed store, hash-verified

111
112// AuthHeader returns the Bearer header a cloud-routed request needs.
113func AuthHeader(token string) string { return "Bearer " + token }
114
115// ContextWindowFromHeaders reads X-Context-Window. Returns 0 when missing,
116// malformed, or out of sane range; the caller reads 0 as "use the fallback".

Callers 2

doPostMethod · 0.92
TestAuthHeaderFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestAuthHeaderFunction · 0.68