pub struct HttpBody<'a> {
pub content_type: &'a str,
pub body: &'a [u8],
}
Expand description
Body of an HTTP request
Fields§
§content_type: &'a str
Content-Type
of the request’s body
body: &'a [u8]
Request’s body
Auto Trait Implementations§
impl<'a> Freeze for HttpBody<'a>
impl<'a> RefUnwindSafe for HttpBody<'a>
impl<'a> Send for HttpBody<'a>
impl<'a> Sync for HttpBody<'a>
impl<'a> Unpin for HttpBody<'a>
impl<'a> UnwindSafe for HttpBody<'a>
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