MCPcopy Create free account
hub / github.com/apify/crawlee-python / get_cookies

Function get_cookies

tests/unit/server.py:145–149  ·  view source on GitHub ↗

Handle requests to retrieve cookies sent in the request.

(scope: dict[str, Any], _receive: Receive, send: Send)

Source from the content-addressed store, hash-verified

143
144
145async def get_cookies(scope: dict[str, Any], _receive: Receive, send: Send) -> None:
146 """Handle requests to retrieve cookies sent in the request."""
147 headers = get_headers_dict(scope)
148 cookies = get_cookies_from_headers(headers)
149 await send_json_response(send, {'cookies': cookies})
150
151
152async def set_cookies(scope: dict[str, Any], _receive: Receive, send: Send) -> None:

Callers

nothing calls this directly

Calls 3

get_headers_dictFunction · 0.85
get_cookies_from_headersFunction · 0.85
send_json_responseFunction · 0.85

Tested by

no test coverage detected