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

Class RequestsResponse

github/Requester.py:127–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125
126
127class RequestsResponse:
128 # mimic the httplib response object
129 def __init__(self, r: requests.Response):
130 self.status = r.status_code
131 self.headers = r.headers
132 self.response = r
133
134 def getheaders(self) -> ItemsView[str, str]:
135 return self.headers.items()
136
137 def read(self) -> str:
138 return self.response.text
139
140 def iter_content(self, chunk_size: int | None = 1) -> Iterator:
141 return self.response.iter_content(chunk_size=chunk_size)
142
143 def raise_for_status(self) -> None:
144 self.response.raise_for_status()
145
146
147class HTTPSRequestsConnectionClass:

Callers 2

getresponseMethod · 0.85
getresponseMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…