Skip to main content

Crate safebrowsing_url

Crate safebrowsing_url 

Source
Expand description

URL processing and canonicalization for Google Safe Browsing API

This crate provides URL processing and canonicalization functions used by the Safe Browsing API. It handles URL normalization, host extraction, and pattern generation for URL lookups.

Structs§

CanonicalUrl
Information about a canonicalized URL

Enums§

UrlError
Error type for URL operations

Functions§

canonicalize_url
Canonicalize a URL according to the Safe Browsing specification
extract_domain
Extract the domain from a URL
generate_patterns
Generate URL patterns for lookup in the Safe Browsing database
validate_url
Check if a URL string is potentially valid

Type Aliases§

Result
Result type for URL operations