pub struct Request {
pub head: RequestParts,
pub body: Vec<u8>,
}
Expand description
Represents an HTTP request from the WebView.
An HTTP request consists of a head and a potentially optional body.
Platform-specific
- Linux: Headers are not exposed.
Fields
head: RequestParts
body: Vec<u8>
Implementations
sourceimpl Request
impl Request
sourcepub fn headers(&self) -> &HeaderMap<HeaderValue>
pub fn headers(&self) -> &HeaderMap<HeaderValue>
Returns a reference to the associated header field map.
sourcepub fn into_parts(self) -> (RequestParts, Vec<u8>)
pub fn into_parts(self) -> (RequestParts, Vec<u8>)
Consumes the request returning the head and body RequestParts.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more