pub enum RequestBody {
Raw(Receiver<Bytes>),
Parts(Receiver<RequestPart>),
}Expand description
What feeds a worker’s request body in streaming mode.
Exactly one variant is created per streamed request, chosen by the HTTP
plugin from the request Content-Type.
Variants§
Raw(Receiver<Bytes>)
Opaque body bytes — consumed by folk_read / folk_read_all.
Parts(Receiver<RequestPart>)
A parsed multipart stream — consumed by folk_next_part /
folk_part_read / folk_part_read_all.
Auto Trait Implementations§
impl Freeze for RequestBody
impl RefUnwindSafe for RequestBody
impl Send for RequestBody
impl Sync for RequestBody
impl Unpin for RequestBody
impl UnsafeUnpin for RequestBody
impl UnwindSafe for RequestBody
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more