Expand description
Handler of link checking operations.
This module defines two structs, Client and ClientBuilder.
Client handles incoming requests and returns responses.
ClientBuilder exposes a finer level of granularity for building
a Client.
For convenience, a free function check is provided for ad-hoc
link checks.
Structsยง
- Client
- Handles incoming requests and returns responses.
- Client
Builder - Builder for
Client.
Constantsยง
- CONNECT_
TIMEOUT ๐ - A timeout for only the connect phase of a
Client. - DEFAULT_
MAX_ REDIRECTS - Default number of redirects before a request is deemed as failed, 5.
- DEFAULT_
MAX_ RETRIES - Default number of retries before a request is deemed as failed, 3.
- DEFAULT_
RETRY_ WAIT_ TIME_ SECS - Default wait time in seconds between retries, 1.
- DEFAULT_
TIMEOUT_ SECS - Default timeout in seconds before a request is deemed as failed, 20.
- DEFAULT_
USER_ AGENT - Default user agent,
lychee-<PKG_VERSION>. - TCP_
KEEPALIVE ๐ - TCP keepalive.
Functionsยง
- check
- A shorthand function to check a single URI.
- redirect_
policy ๐ - Create our custom
redirect::Policyin order to stop following redirects oncemax_redirectsis reached and to record redirections for reporting.