(self, method: str, url: str, **kwargs)
| 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) |
no test coverage detected