Skip to main content

ResponseExt

Trait ResponseExt 

Source
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§

Source

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.

Source

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".

Implementors§