GetHtml

Trait GetHtml 

Source
pub trait GetHtml {
    // Required method
    fn url(&self) -> Result<Url>;

    // Provided method
    fn get_html(
        &self,
        client: &Client,
        cookies_path: &AbsPathBuf,
        retry_limit: usize,
        retry_interval: Duration,
        cnsl: &mut Console,
    ) -> Result<(StatusCode, Html)> { ... }
}

Required Methods§

Source

fn url(&self) -> Result<Url>

Returns a url from which we get html.

Provided Methods§

Source

fn get_html( &self, client: &Client, cookies_path: &AbsPathBuf, retry_limit: usize, retry_interval: Duration, cnsl: &mut Console, ) -> Result<(StatusCode, Html)>

Request html with http GET method.

Implementors§