From 2b8076cf8f052a4c8b477f8830f0f1360913b06a Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Sun, 24 Aug 2025 17:30:49 +0900 Subject: [PATCH] Update doc comment --- actix-http/src/test.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/actix-http/src/test.rs b/actix-http/src/test.rs index 84a6d731b..5632a310c 100644 --- a/actix-http/src/test.rs +++ b/actix-http/src/test.rs @@ -98,6 +98,8 @@ impl TestRequest { } /// Set request payload. + /// + /// This sets the `Content-Length` header with the size of `data`. pub fn set_payload(&mut self, data: impl Into) -> &mut Self { let mut payload = crate::h1::Payload::empty(); let bytes = data.into();