1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 06:39:22 +02:00

provide optimisation path for single-chunk body types (#2497)

This commit is contained in:
Rob Ede
2021-12-09 13:52:35 +00:00
committed by GitHub
parent 69fa17f66f
commit 774ac7fec4
7 changed files with 328 additions and 30 deletions

View File

@ -101,7 +101,7 @@ async fn test_h2_1() -> io::Result<()> {
#[actix_rt::test]
async fn test_h2_body() -> io::Result<()> {
let data = "HELLOWORLD".to_owned().repeat(64 * 1024);
let data = "HELLOWORLD".to_owned().repeat(64 * 1024); // 640 KiB
let mut srv = test_server(move || {
HttpService::build()
.h2(|mut req: Request<_>| async move {