MCPcopy
hub / github.com/psf/requests / default_headers

Function default_headers

src/requests/utils.py:951–962  ·  view source on GitHub ↗

:rtype: requests.structures.CaseInsensitiveDict

()

Source from the content-addressed store, hash-verified

949
950
951def default_headers() -> CaseInsensitiveDict[str]:
952 """
953 :rtype: requests.structures.CaseInsensitiveDict
954 """
955 return CaseInsensitiveDict(
956 {
957 "User-Agent": default_user_agent(),
958 "Accept-Encoding": DEFAULT_ACCEPT_ENCODING,
959 "Accept": "*/*",
960 "Connection": "keep-alive",
961 }
962 )
963
964
965def parse_header_links(value: str) -> list[dict[str, str]]:

Callers 1

__init__Method · 0.85

Calls 2

CaseInsensitiveDictClass · 0.85
default_user_agentFunction · 0.85

Tested by

no test coverage detected