Update async body doc (#1357)

Remove File from examples of what .body() accept
This commit is contained in:
Fredrik Enestad
2021-10-18 18:54:38 +02:00
committed by GitHub
parent bb3d102108
commit d35c311e6d

View File

@@ -53,7 +53,7 @@
//! There are several ways you can set the body of a request. The basic one is
//! by using the `body()` method of a [`RequestBuilder`][builder]. This lets you set the
//! exact raw bytes of what the body should be. It accepts various types,
//! including `String`, `Vec<u8>`, and `File`. If you wish to pass a custom
//! including `String` and `Vec<u8>`. If you wish to pass a custom
//! type, you can use the `reqwest::Body` constructors.
//!
//! ```rust