Client in lychee_lib - Rust (original) (raw)
pub struct Client { /* private fields */ }
Expand description
Handles incoming requests and returns responses.
See ClientBuilder which contains sane defaults for all configuration options.
Check a single request.
request
can be either a Request or a type that can be converted into it. In any case, it must represent a valid URI.
§Errors
Returns an Err
if:
request
does not represent a valid URI.- Encrypted connection for a HTTP URL is available but unused. (Only checked when
Client::require_https
istrue
.)
Check a single file using the file checker.
Remap uri
using the client-defined remapping rules.
§Errors
Returns an Err
if the final, remapped uri
is not a valid URI.
Returns whether the given uri
should be ignored from checking.
Checks the given URI of a website.
§Errors
This returns an Err
if
- The URI is invalid.
- The request failed.
- The response status code is not accepted.
- The URI cannot be converted to HTTPS.
Checks a mailto
URI.
Checks a file
URI’s fragment.