(self, name: str, value: str, domain: str = "", path: str = "/")
| 234 | raise TypeError(f"Cookies must be dict or list, not {type(cookies)}") |
| 235 | |
| 236 | def set(self, name: str, value: str, domain: str = "", path: str = "/") -> None: |
| 237 | cookie = Cookie( |
| 238 | version=0, |
| 239 | name=name, |
| 240 | value=value, |
| 241 | port=None, |
| 242 | port_specified=False, |
| 243 | domain=domain, |
| 244 | domain_specified=bool(domain), |
| 245 | domain_initial_dot=domain.startswith("."), |
| 246 | path=path, |
| 247 | path_specified=bool(path), |
| 248 | secure=False, |
| 249 | expires=None, |
| 250 | discard=True, |
| 251 | comment=None, |
| 252 | comment_url=None, |
| 253 | rest={}, |
| 254 | rfc2109=False, |
| 255 | ) |
| 256 | self.jar.set_cookie(cookie) |
| 257 | |
| 258 | def get( # pyright: ignore[reportIncompatibleMethodOverride] |
| 259 | self, |
no outgoing calls