actix / actix/actix-web

extractor for all cookies

Open
#2,575 7 comments 2 reactions 1 assignee Claimed by @Chaostheorie View on GitHub
A-web C-feature
Dominant language
Rust
Stars
24.8k
Forks
1.9k
Avg merge
23h 10m
Merged PRs (30d)
26

Description

### 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?

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.