MCPcopy
hub / github.com/encode/httpx / links

Method links

httpx/_models.py:842–853  ·  view source on GitHub ↗

Returns the parsed header links of the response, if any

(self)

Source from the content-addressed store, hash-verified

840
841 @property
842 def links(self) -> dict[str | None, dict[str, str]]:
843 """
844 Returns the parsed header links of the response, if any
845 """
846 header = self.headers.get("link")
847 if header is None:
848 return {}
849
850 return {
851 (link.get("rel") or link.get("url")): link
852 for link in _parse_header_links(header)
853 }
854
855 @property
856 def num_bytes_downloaded(self) -> int:

Callers

nothing calls this directly

Calls 2

_parse_header_linksFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected