Sniff and replay HTTP requests and responses — perfect for mocking APIs during testing.

disable http keep-alive and increase max buffer size

+5 -3
+1 -1
Cargo.lock
··· 1317 1317 1318 1318 [[package]] 1319 1319 name = "replay" 1320 - version = "0.1.0" 1320 + version = "0.1.1" 1321 1321 dependencies = [ 1322 1322 "actix-web", 1323 1323 "clap",
+1 -1
Cargo.toml
··· 1 1 [package] 2 2 name = "replay" 3 - version = "0.1.0" 3 + version = "0.1.1" 4 4 edition = "2024" 5 5 description = "A simple HTTP request replay tool" 6 6 license = "Apache-2.0"
+3 -1
src/proxy.rs
··· 94 94 }); 95 95 96 96 if let Err(err) = http1::Builder::new() 97 + .keep_alive(false) // Disable keep-alive 98 + .max_buf_size(30 * 1024 * 1024) // 30 MB 97 99 .serve_connection(io, service) 98 100 .await 99 101 { 100 - eprintln!("Connection error: {}", err); 102 + eprintln!("> Connection error: {}", err); 101 103 } 102 104 }); 103 105 }