Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/actix/examples
/ bytes_to_payload
Function
bytes_to_payload
middleware/various/src/read_request_body.rs:71–75 ·
view source on GitHub ↗
(buf: web::Bytes)
Source
from the content-addressed store, hash-verified
69
}
70
71
fn bytes_to_payload(buf: web::Bytes) -> dev::Payload {
72
let (_, mut pl) = h1::Payload::create(true);
73
pl.unread_data(buf);
74
dev::Payload::from(pl)
75
}
Callers
1
call
Method · 0.70
Calls
1
create
Function · 0.85
Tested by
no test coverage detected