PeterDing / mugen

Mugen - HTTP for Asynchronous Requests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to get the cookie of the current request URL?

lgs3137 opened this issue · comments

get_cookie = await mugen.get(url, headers=headers)

How to get the cookie of the current request URL?

get_cookie.request.headers['cookie']

This method will not work

The returned cookies are in the response. I can get it with the attribute resp.cookies.