MCPcopy Create free account
hub / github.com/openai/plugins / build_headers

Function build_headers

plugins/box/skills/box/scripts/box_rest.py:21–28  ·  view source on GitHub ↗
(token: str, extra: dict[str, str] | None = None)

Source from the content-addressed store, hash-verified

19
20
21def build_headers(token: str, extra: dict[str, str] | None = None) -> dict[str, str]:
22 headers = {
23 "Authorization": f"Bearer {token}",
24 "Accept": "application/json",
25 }
26 if extra:
27 headers.update(extra)
28 return headers
29
30
31def api_request(

Callers 1

api_requestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected