Uri
Uri class for working with wrap URIs.
wrap://ipfs/QmHASH
wrap://fs/directory/file.txt
wrap://http/https://example.com
wrap://ens/sub.domain.eth
Breaking down the various parts of the URI, as it applies to the URI standard:
wrap:// - URI Scheme: differentiates Polywrap URIs.
ipfs/ - URI Authority: allows the Polywrap URI resolution algorithm to determine an authoritative URI resolver.
sub.domain.eth - URI Path: tells the Authority where the Wrapper resides.
The primary constructor consumes an FfiUri and deallocates its memory.
Parameters
uri
a string representation of a wrap URI
Throws
Ffi Exception
if the URI string is invalid