Struct dioxus_mobile::wry::http::Request [−]
pub struct Request {
pub head: RequestParts,
pub body: Vec<u8, Global>,
}
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, Global>
Implementations
impl Request
impl Request
pub fn headers(&self) -> &HeaderMap<HeaderValue>
pub fn headers(&self) -> &HeaderMap<HeaderValue>
Returns a reference to the associated header field map.
pub fn into_parts(self) -> (RequestParts, Vec<u8, Global>)
pub fn into_parts(self) -> (RequestParts, Vec<u8, Global>)
Consumes the request returning the head and body RequestParts.