MCPcopy Index your code
hub / github.com/OpenOSINT/OpenOSINT / _build_headers

Function _build_headers

openosint/tools/search_github.py:29–36  ·  view source on GitHub ↗
(token: str | None)

Source from the content-addressed store, hash-verified

27
28
29def _build_headers(token: str | None) -> dict[str, str]:
30 headers = {
31 "Accept": "application/vnd.github+json",
32 "X-GitHub-Api-Version": "2022-11-28",
33 }
34 if token:
35 headers["Authorization"] = f"Bearer {token}"
36 return headers
37
38
39async def _get(

Callers 1

run_github_osintFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected