Expand description
CMN URI parsing and URL policy utilities.
The cmn:// scheme follows the generic URI syntax defined in
RFC 3986:
cmn://domain
cmn://domain/hash
cmn://domain/mycelium/hash
cmn://domain/taste/hashFour forms:
cmn://example.com— domain rootcmn://example.com/b3.3yMR7vZQ9hL...— content-addressed sporecmn://example.com/mycelium/b3.7tRk...— content-addressed myceliumcmn://example.com/taste/b3.7tRk...— content-addressed taste report
Structs§
- CmnUri
- Parsed CMN URI
Enums§
- CmnUri
Kind - The kind of entity a CMN URI identifies.
Functions§
- build_
domain_ uri - Build a domain root URI
- build_
mycelium_ uri - Build a mycelium URI
- build_
spore_ uri - Build a spore URI
- build_
taste_ uri - Build a taste report URI
- cmn_
entry_ url - Build the well-known cmn.json entry URL for a domain
- is_
public_ ip - Check whether an IP address is routable on the public internet.
- normalize_
and_ validate_ url - Normalize and validate an HTTP(S) URL against SSRF and scheme injection.
- normalize_
taste_ target_ uri - Normalize and validate a taste target URI.
- parse_
uri - Parse a CMN URI into its components
- validate_
domain - Validate a domain name per CMN spec (RFC 1123, lowercase only).