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

Method cookies

tests/test_client_functional_oldstyle.py:1337–1350  ·  view source on GitHub ↗
(self, match)

Source from the content-addressed store, hash-verified

1335
1336 @test_utils.Router.define('/cookies$')
1337 def cookies(self, match):
1338 cookies = http.cookies.SimpleCookie()
1339 cookies['c1'] = 'cookie1'
1340 cookies['c2'] = 'cookie2'
1341
1342 resp = self._start_response(200)
1343 for cookie in cookies.output(header='').split('\n'):
1344 resp.add_header('Set-Cookie', cookie.strip())
1345
1346 resp.add_header(
1347 'Set-Cookie',
1348 'ISAWPLB{A7F52349-3531-4DA9-8776-F74BC6F4F1BB}='
1349 '{925EC0B8-CB17-4BEB-8A35-1033813B0523}; HttpOnly; Path=/')
1350 self._response(resp)
1351
1352 @test_utils.Router.define('/cookies_partial$')
1353 def cookies_partial(self, match):

Callers

nothing calls this directly

Calls 4

_start_responseMethod · 0.80
outputMethod · 0.80
add_headerMethod · 0.80
_responseMethod · 0.80

Tested by

no test coverage detected