mirror of https://github.com/fafhrd91/actix-web
Update doc comment
This commit is contained in:
parent
13c41625e5
commit
2b8076cf8f
|
@ -98,6 +98,8 @@ impl TestRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set request payload.
|
/// 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 {
|
pub fn set_payload(&mut self, data: impl Into<Bytes>) -> &mut Self {
|
||||||
let mut payload = crate::h1::Payload::empty();
|
let mut payload = crate::h1::Payload::empty();
|
||||||
let bytes = data.into();
|
let bytes = data.into();
|
||||||
|
|
Loading…
Reference in New Issue