benoitc / benoitc/hackney

cookie manipulation issues

Open
#511 0 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Erlang
Stars
1.4k
Forks
455
Avg merge
2d 18h
Merged PRs (30d)
1

Description

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_cookie` parses all parameters while `setcookie` only accepts a subset of options and drops the rest
* `parse_cookie` returns binary keys while `setcookie` expects atoms
* `parse_cookie` returns Max-Age as a string, while `setcookie` expects an integer

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.