MCPcopy 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
159fn 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_payloadsFunction · 0.70

Calls 1

createFunction · 0.85

Tested by

no test coverage detected