Nicholas Young

Headshot image of the author

Posts about rust

Parsing, Validating, and Assembling URLs in Rust

These days, we hardly think about URLs. Popular content management tools default to so-called “pretty” slugs, and even here, on, I remove stop-words to ensure the tidiest, most SEO-friendly URLs possible. It would be easy to forget the struggles that led to best practices of today’s web. However, to my generation of internet hackers, URLs riddled with ampersands and question marks were entirely normal. In those days, assuming URLs would be comprised of hyphenated alphanumeric characters was obviously unsafe; instead, we learned the official standard for parsing and constructing URLs....