actix-web/actix-http/src
Bernard Assan df0885cf21
Add from_bytes/u8_bytes to dev::Payload (#3595)
* feat: Add from_bytes/u8_bytes to dev::Payload

This allows convinent construction of Payload from bytes which is
useful in middlewares

closes actix/actix-web#3589

Add doc comment and changelog entry

* implement from<bytes/vec> for payload

---------

Co-authored-by: Rob Ede <robjtede@icloud.com>
2025-03-09 16:40:00 +00:00
..
body build(deps): update derive_more requirement from 1 to 2 (#3571) 2025-02-10 01:27:56 +00:00
encoding build(deps): update derive_more requirement from 1 to 2 (#3571) 2025-02-10 01:27:56 +00:00
h1 chore: disallow e bindings 2024-08-10 05:15:49 +01:00
h2 chore: move deny lints to manifests 2024-07-07 03:54:00 +01:00
header build(deps): update derive_more requirement from 1 to 2 (#3571) 2025-02-10 01:27:56 +00:00
requests ci: faster cargo-public-api install (#3255) 2024-01-22 02:19:19 +00:00
responses test: fix tests based on mime-guess inference 2024-06-30 20:28:11 +01:00
ws build(deps): update derive_more requirement from 1 to 2 (#3571) 2025-02-10 01:27:56 +00:00
builder.rs migrate to doc_auto_cfg 2023-02-26 21:55:25 +00:00
config.rs apply standard formatting 2023-07-17 02:38:12 +01:00
date.rs perf: remove unnecessary allocation when writing http dates (#3261) 2024-02-07 03:47:30 +00:00
error.rs build(deps): update derive_more requirement from 1 to 2 (#3571) 2025-02-10 01:27:56 +00:00
extensions.rs Add `Extensions::get_or_insert[_with]()` methods (#3561) 2025-02-09 22:04:21 +00:00
helpers.rs chore: address clippy warnings 2024-12-29 15:03:43 +00:00
http_message.rs chore: address clippy warnings 2024-12-29 15:03:43 +00:00
keep_alive.rs add ws and http2 feature flags (#2618) 2022-01-31 21:22:23 +00:00
lib.rs chore: move deny lints to manifests 2024-07-07 03:54:00 +01:00
message.rs chore: move deny lints to manifests 2024-07-07 03:54:00 +01:00
notify_on_drop.rs chore: clippy 2024-02-12 23:02:45 +00:00
payload.rs Add from_bytes/u8_bytes to dev::Payload (#3595) 2025-03-09 16:40:00 +00:00
service.rs chore: disallow e bindings 2024-08-10 05:15:49 +01:00
test.rs chore: move deny lints to manifests 2024-07-07 03:54:00 +01:00