MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / default_headers

Method default_headers

src/anthropic/_base_client.py:799–807  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

797
798 @property
799 def default_headers(self) -> dict[str, str | Omit]:
800 return {
801 "Accept": "application/json",
802 "Content-Type": "application/json",
803 "User-Agent": self.user_agent,
804 **self.platform_headers(),
805 **self.auth_headers,
806 **self._custom_headers,
807 }
808
809 @property
810 def default_query(self) -> dict[str, object]:

Callers

nothing calls this directly

Calls 1

platform_headersMethod · 0.95

Tested by

no test coverage detected