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

Method headers

src/anthropic/_request.py:51–58  ·  view source on GitHub ↗

The client's default headers merged with this call's headers, including credentials such as the API key. The client's header names are lowercase, and the call's keep their casing. Leaving a client header out of `copy(headers=...)` still sends it; set it to `omit` to remove it.

(self)

Source from the content-addressed store, hash-verified

49
50 @property
51 def headers(self) -> Headers:
52 """The client's default headers merged with this call's headers, including credentials such as the API key.
53
54 The client's header names are lowercase, and the call's keep their casing.
55 Leaving a client header out of `copy(headers=...)` still sends it; set it to `omit` to remove it.
56 """
57 headers = self.options.headers
58 return headers if is_given(headers) else {}
59
60 @property
61 def query_params(self) -> Query:

Callers

nothing calls this directly

Calls 1

is_givenFunction · 0.85

Tested by

no test coverage detected