(
self,
verb,
url,
input,
headers,
stream: bool = False,
)
| 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}" |
nothing calls this directly
no test coverage detected