Method
__init__
(
self,
*,
raw: httpx.Response,
cast_to: type[R],
client: BaseClient[Any, Any],
stream: bool,
stream_cls: type[Stream[Any]] | type[AsyncStream[Any]] | None,
options: FinalRequestOptions,
retries_taken: int = 0,
)
Source from the content-addressed store, hash-verified
| 59 | """The number of retries made. If no retries happened this will be `0`""" |
| 60 | |
| 61 | def __init__( |
| 62 | self, |
| 63 | *, |
| 64 | raw: httpx.Response, |
| 65 | cast_to: type[R], |
| 66 | client: BaseClient[Any, Any], |
| 67 | stream: bool, |
| 68 | stream_cls: type[Stream[Any]] | type[AsyncStream[Any]] | None, |
| 69 | options: FinalRequestOptions, |
| 70 | retries_taken: int = 0, |
| 71 | ) -> None: |
| 72 | self._cast_to = cast_to |
| 73 | self._client = client |
| 74 | self._parsed_by_type = {} |
| 75 | self._is_sse_stream = stream |
| 76 | self._stream_cls = stream_cls |
| 77 | self._options = options |
| 78 | self.http_response = raw |
| 79 | self.retries_taken = retries_taken |
| 80 | |
| 81 | @property |
| 82 | def headers(self) -> httpx.Headers: |
Tested by
no test coverage detected