MCPcopy
hub / github.com/sphinx-doc/sphinx / get

Function get

sphinx/util/requests.py:48–54  ·  view source on GitHub ↗

Sends a GET request like ``requests.get()``. This sets up User-Agent header and TLS verification automatically.

(url: str, **kwargs: Any)

Source from the content-addressed store, hash-verified

46
47
48def get(url: str, **kwargs: Any) -> requests.Response:
49 """Sends a GET request like ``requests.get()``.
50
51 This sets up User-Agent header and TLS verification automatically.
52 """
53 with _Session() as session:
54 return session.get(url, **kwargs)
55
56
57def head(url: str, **kwargs: Any) -> requests.Response:

Callers

nothing calls this directly

Calls 2

_SessionClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected