Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/actix/examples
/ bytes_to_payload
Function
bytes_to_payload
middleware/encrypted-payloads/src/main.rs:159–163 ·
view source on GitHub ↗
(buf: web::Bytes)
Source
from the content-addressed store, hash-verified
157
}
158
159
fn bytes_to_payload(buf: web::Bytes) -> dev::Payload {
160
let (_, mut pl) = actix_http::h1::Payload::create(true);
161
pl.unread_data(buf);
162
dev::Payload::from(pl)
163
}
Callers
1
encrypt_payloads
Function · 0.70
Calls
1
create
Function · 0.85
Tested by
no test coverage detected