cookie manipulation issues

未关闭
#511 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
erlang
领域
networking

调研方向

从 hackney_cookie:parse_cookie 和 hackney_cookie:setcookie 入口点开始,跟踪 cookie 选项、键类型和 Max-Age 值在两者之间的表示方式。比较接受的形式和返回的形式,然后为将解析后的响应 cookie 传入另一个响应添加或更新覆盖测试;当文档中说明的 cookie 属性以兼容的类型得以保留时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

enhancement

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
主要语言
Erlang
星标
1.4k
派生
458
平均合并
11 小时 32 分钟
30 天内合并 PR
47

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

benoitc/hackney 的其他 Issue

查看 benoitc/hackney 的全部 Issue

相似的 Issue

更多 Networking Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。