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

Method DEBUG_ON_RESPONSE

github/Requester.py:357–367  ·  view source on GitHub ↗

Update current frame with response Current frame index will be attached to responseHeader.

(self, statusCode: int, responseHeader: dict[str, str | int], data: str)

Source from the content-addressed store, hash-verified

355 self._frameCount = len(self._frameBuffer) - 1
356
357 def DEBUG_ON_RESPONSE(self, statusCode: int, responseHeader: dict[str, str | int], data: str) -> None:
358 """
359 Update current frame with response Current frame index will be attached to responseHeader.
360 """
361 if self.DEBUG_FLAG: # pragma no branch (Flag always set in tests)
362 self._frameBuffer[self._frameCount][1:4] = [
363 statusCode,
364 responseHeader,
365 data,
366 ]
367 responseHeader[self.DEBUG_HEADER_KEY] = self._frameCount
368
369 def check_me(self, obj: GithubObject) -> None:
370 if self.DEBUG_FLAG and self.ON_CHECK_ME is not None: # pragma no branch (Flag always set in tests)

Callers 1

__requestEncodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected