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, Global>)
pub fn into_parts(self) -> (RequestParts, Vec<u8, Global>)
Consumes the request returning the head and body RequestParts.
Stability
This API is used internally. It may have breaking changes in the future.