Request in lychee_lib - Rust (original) (raw)
pub struct Request {
pub uri: Uri,
pub source: InputSource,
pub element: Option<String>,
pub attribute: Option<String>,
pub credentials: Option<BasicAuthCredentials>,
}
Expand description
A request type that can be handle by lychee
A valid Uniform Resource Identifier of a given endpoint, which can be checked with lychee
The resource which contained the given URI
Specifies how the URI was rendered inside a document (for example img
, a
, pre
, or code
). In case of plaintext input the field is None
.
Specifies the attribute (e.g. href
) that contained the URI
Basic auth credentials