pub struct HttpBody { /* private fields */ }Expand description
The streaming body that OpenDAL’s HttpClient returned.
We implement oio::Read for the HttpBody. Services can use HttpBody as
[Access::Read].
Implementations§
Source§impl HttpBody
impl HttpBody
Sourcepub fn new<S>(stream: S, size: Option<u64>) -> Self
Available on non-WebAssembly only.
pub fn new<S>(stream: S, size: Option<u64>) -> Self
Create a new HttpBody with given stream and optional size.
Trait Implementations§
impl Send for HttpBody
§Safety
HttpBody is Send on non wasm32 targets.
impl Sync for HttpBody
§Safety
HttpBody is sync on non wasm32 targets.
Auto Trait Implementations§
impl Freeze for HttpBody
impl !RefUnwindSafe for HttpBody
impl Unpin for HttpBody
impl !UnwindSafe for HttpBody
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