actix / actix/actix-web

extractor for all cookies

未关闭
#2,575 7 条评论 2 个 reaction 已指派 1 人 已被 @Chaostheorie 认领 在 GitHub 查看
A-web C-feature
主要语言
Rust
星标
24.8k
派生
1.9k
平均合并
23 小时 10 分钟
30 天内合并 PR
26

描述

### Proposal
An `AllCookies` extractor that can be used in guards.

### Discussed in https://github.com/actix/actix-web/discussions/2504

Originally posted by **ModProg** December 11, 2021
I know that I can parse them manually, but my question is, is there a convenience method like `HttpRequest::cookie(&str)`, to get them from `RequestHead` in a guard?
And if not, would that be something to consider adding, maybe in a trait both implement?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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