pub struct LinkChecker { /* private fields */ }Expand description
A utility for checking the availability and HTTP status of URLs, with optional integration for FlareSolverr to bypass anti-bot challenges.
Implementations§
Source§impl LinkChecker
Implements the core functionality for LinkChecker.
impl LinkChecker
Implements the core functionality for LinkChecker.
Sourcepub async fn close(self) -> Result<()>
pub async fn close(self) -> Result<()>
Close the LinkChecker instance, specifically destroying the FlareSolverr
session if one was active.
Each instance of LinkChecker establishes a new session with the FlareSolverr service.
Sessions must be explicitly destroyed using close when no longer needed.
Accumulating too many active sessions can degrade FlareSolverr performance.
§Returns
An anyhow::Result indicating success or an error if the FlareSolverr
session could not be destroyed.
Sourcepub fn builder() -> LinkCheckerBuilder
pub fn builder() -> LinkCheckerBuilder
Creates a new LinkChecker instance.
Trait Implementations§
Source§impl Clone for LinkChecker
impl Clone for LinkChecker
Source§fn clone(&self) -> LinkChecker
fn clone(&self) -> LinkChecker
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LinkChecker
impl Debug for LinkChecker
Source§impl Default for LinkChecker
impl Default for LinkChecker
Source§fn default() -> Self
fn default() -> Self
Initializes a LinkChecker with a default Client configured
with a 10-second timeout and no FlareSolverr integration.
§Panics
Panics if the underlying Client::builder panics. Use Self::builder if you want to handle the error.