[−][src]Struct multipart::client::SizedRequest
A wrapper around a request object that measures the request body and sets the Content-Length
header to its size in bytes.
Sized requests are more human-readable and use less bandwidth (as chunking adds visual noise and overhead), but they must be able to load their entirety, including the contents of all files and streams, into memory so the request body can be measured.
You should really only use sized requests if you intend to inspect the data manually on the server side, as it will produce a more human-readable request body. Also, of course, if the server doesn't support chunked requests or otherwise rejects them.
Trait Implementations
impl<R: HttpRequest> HttpRequest for SizedRequest<R> where
<R::Stream as HttpStream>::Error: From<R::Error>,
[src][+]
<R::Stream as HttpStream>::Error: From<R::Error>,
impl<R: HttpRequest> HttpStream for SizedRequest<R> where
<R::Stream as HttpStream>::Error: From<R::Error>,
[src][+]
<R::Stream as HttpStream>::Error: From<R::Error>,
impl<R> Write for SizedRequest<R>
[src][+]
Auto Trait Implementations
impl<R> RefUnwindSafe for SizedRequest<R> where
R: RefUnwindSafe,
[src]
R: RefUnwindSafe,
impl<R> Send for SizedRequest<R> where
R: Send,
[src]
R: Send,
impl<R> Sync for SizedRequest<R> where
R: Sync,
[src]
R: Sync,
impl<R> Unpin for SizedRequest<R> where
R: Unpin,
[src]
R: Unpin,
impl<R> UnwindSafe for SizedRequest<R> where
R: UnwindSafe,
[src]
R: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,