Skip to content
Myr

Drop unused Request.cookies (#703)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tom Christie · committed by GitHub · parent fe86c0c · Browse files · 1 file+1 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−8 removed

  • other:+1 added−8 removed

1 file+1 added−8 removed

modified:httpx/models.py+1 added-8 removed
598 unmodified lines
599 self.method = method.upper()600 self.url = URL(url, params=params)601 self.headers = Headers(headers)602 if cookies:603 self._cookies = Cookies(cookies)604 self._cookies.set_cookie_header(self)603 Cookies(cookies).set_cookie_header(self)604605 if stream is not None:606 self.stream = stream607 else:
30 unmodified lines
638639 for item in reversed(auto_headers):640 self.headers.raw.insert(0, item)641643 @property644 def cookies(self) -> "Cookies":645 if not hasattr(self, "_cookies"):646 self._cookies = Cookies()647 return self._cookies648642 def __repr__(self) -> str:643 class_name = self.__class__.__name__644 url = str(self.url)645 return f"<{class_name}({self.method!r}, {url!r})>"
473 unmodified lines