MCPcopy
hub / github.com/safishamsi/graphify / request

Method request

worked/httpx/raw/client.py:77–90  ·  view source on GitHub ↗
(self, method: str, url: str, **kwargs)

Source from the content-addressed store, hash-verified

75 self._transport = transport or HTTPTransport()
76
77 def request(self, method: str, url: str, **kwargs) -> Response:
78 request = self._build_request(method, url, **kwargs)
79 auth = kwargs.get("auth") or self._auth
80 if auth:
81 flow = auth.auth_flow(request)
82 request = next(flow)
83 response = self._transport.handle_request(request)
84 self._merge_cookies(response)
85 if auth:
86 try:
87 flow.send(response)
88 except StopIteration:
89 pass
90 return response
91
92 def get(self, url: str, **kwargs) -> Response:
93 return self.request("GET", url, **kwargs)

Callers 6

getMethod · 0.95
postMethod · 0.95
putMethod · 0.95
patchMethod · 0.95
deleteMethod · 0.95
headMethod · 0.95

Calls 6

_build_requestMethod · 0.80
_merge_cookiesMethod · 0.80
getMethod · 0.45
auth_flowMethod · 0.45
handle_requestMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected