actix / actix/actix-web

extractor for all cookies

Offen
#2,575 7 Kommentare 2 Reaktionen 1 zugewiesene Person Beansprucht von @Chaostheorie Auf GitHub ansehen
A-web C-feature
Vorherrschende Sprache
Rust
Sterne
24.8k
Forks
1.9k
Ø Merge
23 Std. 10 Min.
Gemergte PRs (30 T.)
26

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.