pub trait ResponseExt {
// Required methods
fn final_uri(&self) -> Option<&Uri>;
fn set_final_uri(&mut self, uri: Uri);
}Expand description
Reads and writes crawl metadata on a Response.
Required Methods§
Sourcefn final_uri(&self) -> Option<&Uri>
fn final_uri(&self) -> Option<&Uri>
Returns the URI the response was served from after redirects, if the backend recorded it.
Resolve relative links against this rather than the request URI.
Sourcefn set_final_uri(&mut self, uri: Uri)
fn set_final_uri(&mut self, uri: Uri)
Records the URI the response was served from; called by backends.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".