Trait SessionResponse

Source
pub trait SessionResponse {
    type Url: IntoUrl + Clone;

    // Required methods
    fn parse_set_cookie(&self) -> Vec<RawCookie<'static>>;
    fn final_url(&self) -> Option<&Self::Url>;
}
Expand description

Trait representing responses which may have a Set-Cookie header, appropriate for use with a Session

Required Associated Types§

Source

type Url: IntoUrl + Clone

Required Methods§

Parse the Set-Cookie header and return the set of cookies if present

Source

fn final_url(&self) -> Option<&Self::Url>

Return the final Url for the response. In cases such as redirects, such Url may differ from the Request Url. May return None if unavailable.

Implementations on Foreign Types§

Source§

impl SessionResponse for Response

Implementors§