Function lychee_lib::check
source · [−]pub async fn check<T, E>(request: T) -> Result<Response> where
Request: TryFrom<T, Error = E>,
ErrorKind: From<E>, Expand description
A convenience function to check a single URI.
This provides the simplest link check utility without having to create a Client.
For more complex scenarios, see documentation of ClientBuilder instead.
Errors
Returns an Err if:
- The request client cannot be built (see
ClientBuilder::clientfor failure cases). - The request cannot be checked (see
Client::checkfor failure cases).