Function warp::filters::body::stream [−][src]
pub fn stream(
) -> impl Filter<Extract = (ImplStream,), Error = Rejection> + Copy
Create a Filter
that extracts the request body as a futures::Stream
.
If other filters have already extracted the body, this filter will reject
with a 500 Internal Server Error
.
Note
The ImplStream
type is essentially
impl Stream<Item = impl Buf, Error = warp::Error>
, but since nested
impl Trait
s aren't valid yet, the type acts as one.