Struct tauri_runtime::http::Request
source · pub struct Request { /* private fields */ }
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.
Implementations§
source§impl 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.
§Stability
This API is used internally. It may have breaking changes in the future.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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