pub struct MainResponse {
pub url: String,
pub status: u16,
pub status_text: String,
pub headers: Vec<(String, String)>,
}Expand description
The HTTP response of the page’s latest main-frame navigation, from
Engine::main_response. None there means no HTTP response is
known: about:blank, data:, file:, a failed load.
Fields§
§url: StringFinal URL, after redirects.
status: u16§status_text: StringReason phrase. Empty when neither the engine nor
reason_phrase knows one.
headers: Vec<(String, String)>(lower-cased name, value), duplicates kept as separate entries.
Trait Implementations§
Source§impl Clone for MainResponse
impl Clone for MainResponse
Source§impl Debug for MainResponse
impl Debug for MainResponse
Source§impl Default for MainResponse
impl Default for MainResponse
impl Eq for MainResponse
Source§impl PartialEq for MainResponse
impl PartialEq for MainResponse
impl StructuralPartialEq for MainResponse
Auto Trait Implementations§
impl Forget for MainResponse
impl Freeze for MainResponse
impl Move for MainResponse
impl RefUnwindSafe for MainResponse
impl Send for MainResponse
impl Sync for MainResponse
impl Unpin for MainResponse
impl UnsafeUnpin for MainResponse
impl UnwindSafe for MainResponse
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