MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / request

Method request

tests/Framework.py:297–316  ·  view source on GitHub ↗
(
        self,
        verb,
        url,
        input,
        headers,
        stream: bool = False,
    )

Source from the content-addressed store, hash-verified

295 return self.__host
296
297 def request(
298 self,
299 verb,
300 url,
301 input,
302 headers,
303 stream: bool = False,
304 ):
305 port = self.__port if self.__port else 443 if self.__protocol == "https" else 80
306 full_url = Url(scheme=self.__protocol, host=self.__host, port=port, path=url)
307
308 response_headers = self.response_headers.copy()
309 responses.add_callback(
310 method=verb,
311 url=full_url.url,
312 callback=lambda request: self.__request_callback(verb, full_url.url, response_headers),
313 )
314
315 self.__stream = stream
316 self.__cnx.request(verb, url, input, headers, stream=stream)
317
318 def __replayDataMismatchLine(self) -> str:
319 return f"Replay data mismatch in {self.__file}"

Callers

nothing calls this directly

Calls 2

__request_callbackMethod · 0.95
requestMethod · 0.45

Tested by

no test coverage detected