Skip to content

How to specify default protocol #1639

Answered by mre
dotnetCarpenter asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you're right, and I know about that behavior, which is commonly used in browsers as far as I'm aware.
At the moment, lychee doesn't support that.

In order to do so, we'd have to "track" the origin of a link across the entire chain. We could introduce a parent URL to a request here:

pub struct Request {
/// A valid Uniform Resource Identifier of a given endpoint, which can be
/// checked with lychee
pub uri: Uri,
/// The resource which contained the given URI
pub source: InputSource,
/// Specifies how the URI was rendered inside a document
/// (for example `img`…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
4 replies
@dotnetCarpenter
Comment options

@dotnetCarpenter
Comment options

@dotnetCarpenter
Comment options

@nobkd
Comment options

Answer selected by mre
Comment options

You must be logged in to vote
3 replies
@mre
Comment options

mre Feb 21, 2025
Maintainer

@dotnetCarpenter
Comment options

@mre
Comment options

mre Feb 21, 2025
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants