hackney
hackney copied to clipboard
cookie manipulation issues
I have a situation where I want to extract the cookies from a response, parse them, and then use them as input to a separate response. Trying to use hackney_cookie:parse_cookie and hackney_cookie:setcookie resulted in some inconsistencies:
parse_cookieparses all parameters whilesetcookieonly accepts a subset of options and drops the restparse_cookiereturns binary keys whilesetcookieexpects atomsparse_cookiereturns Max-Age as a string, whilesetcookieexpects an integer