You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//! 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
//! type, you can use the `reqwest::Body` constructors.
As per a recent Stack Overflow question. The linked docstring seems to indicate that body() accepts a File object. However, this is only true for blocking::Body, which supports the std File structure, meanwhile the async client seems to lack such implementation.
The text was updated successfully, but these errors were encountered:
reqwest/src/lib.rs
Lines 52 to 56 in bd9ff9f
As per a recent Stack Overflow question. The linked docstring seems to indicate that
body()
accepts aFile
object. However, this is only true forblocking::Body
, which supports the stdFile
structure, meanwhile the async client seems to lack such implementation.The text was updated successfully, but these errors were encountered: