MCPcopy
hub / github.com/smittix/intercept / _headers

Method _headers

utils/agent_client.py:48–53  ·  view source on GitHub ↗

Get request headers.

(self)

Source from the content-addressed store, hash-verified

46 self.timeout = timeout
47
48 def _headers(self) -> dict:
49 """Get request headers."""
50 headers = {'Content-Type': 'application/json'}
51 if self.api_key:
52 headers['X-API-Key'] = self.api_key
53 return headers
54
55 def _get(self, path: str, params: dict | None = None) -> dict:
56 """

Callers 4

_getMethod · 0.95
_postMethod · 0.95

Calls

no outgoing calls

Tested by 2