MCPcopy
hub / github.com/aio-libs/aiohttp / del_cookie

Method del_cookie

aiohttp/web_reqrep.py:537–544  ·  view source on GitHub ↗

Delete cookie. Creates new empty expired cookie.

(self, name, *, domain=None, path='/')

Source from the content-addressed store, hash-verified

535 c['version'] = version
536
537 def del_cookie(self, name, *, domain=None, path='/'):
538 """Delete cookie.
539
540 Creates new empty expired cookie.
541 """
542 # TODO: do we need domain/path here?
543 self._cookies.pop(name, None)
544 self.set_cookie(name, '', max_age=0, domain=domain, path=path)
545
546 @property
547 def content_length(self):

Callers 4

test_response_cookiesFunction · 0.95
logoutFunction · 0.80

Calls 1

set_cookieMethod · 0.95

Tested by 3

test_response_cookiesFunction · 0.76