MCPcopy
hub / github.com/encode/starlette / cookies

Method cookies

starlette/requests.py:150–159  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

148
149 @property
150 def cookies(self) -> dict[str, str]:
151 if not hasattr(self, "_cookies"):
152 cookies: dict[str, str] = {}
153 cookie_headers = self.headers.getlist("cookie")
154
155 for header in cookie_headers:
156 cookies.update(cookie_parser(header))
157
158 self._cookies = cookies
159 return self._cookies
160
161 @property
162 def client(self) -> Address | None:

Callers

nothing calls this directly

Calls 3

cookie_parserFunction · 0.85
getlistMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected