MCPcopy
hub / github.com/encode/httpx / __getstate__

Method __getstate__

httpx/_models.py:862–867  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

860 return f"<Response [{self.status_code} {self.reason_phrase}]>"
861
862 def __getstate__(self) -> dict[str, typing.Any]:
863 return {
864 name: value
865 for name, value in self.__dict__.items()
866 if name not in ["extensions", "stream", "is_closed", "_decoder"]
867 }
868
869 def __setstate__(self, state: dict[str, typing.Any]) -> None:
870 for name, value in state.items():

Callers

nothing calls this directly

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected