Update doc comment

This commit is contained in:
Yuki Okushi 2025-08-24 17:30:49 +09:00 committed by GitHub
parent 13c41625e5
commit 2b8076cf8f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -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<Bytes>) -> &mut Self {
let mut payload = crate::h1::Payload::empty();
let bytes = data.into();