actix / actix/actix-web

consider unifying `web::Payload` and `dev::Payload`

Offen
#2,600 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
A-web RFC / Proposal
Vorherrschende Sprache
Rust
Sterne
24.8k
Forks
1.9k
Ø Merge
23 Std. 10 Min.
Gemergte PRs (30 T.)
26

Beschreibung

Having them as separate type with the same name can be confusing and I don't really see the reason why `web::Payload` is a newtype of `dev::Payload`. Making `web::Payload` a reexport of `dev::Payload` can mitigate this with least migration pain.

## Your Environment

- Rust Version (I.e, output of `rustc -V`):
- Actix Web Version: v4.0-beta.21

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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