Crate links_normalized

Source
Expand description

This crate contains two normalized string datastructures:

  • Normalized, which represents unicode normalized strings
  • Link, which represents valid normalized redirection target URLs

Normalized strings are case-insensitive and ignore whitespace and control characters. They also perform NFKC normalization on the input. They are used as vanity paths by links.

Links are normalized (in the URI sense) http/https URLs used as redirect destinations by links.

Structs§

Link
A normalized URL used as the redirect destination. This ensures that the link is a valid absolute HTTP(S) URL.
Normalized
A normalized string used for vanity paths.

Enums§

LinkError
The error returned by fallible conversions into Links.