Generic constructor for URL path objects.
Returns a FullPathUrl, RootPathUrl, or RelativePathUrl depending on the input string.
pathUrl('https://x.com/foo') → FullPathUrlpathUrl('/foo/bar') → RootPathUrlpathUrl('foo/bar') → RelativePathUrl Copy
pathUrl('https://x.com/foo') → FullPathUrlpathUrl('/foo/bar') → RootPathUrlpathUrl('foo/bar') → RelativePathUrl
Generic constructor for URL path objects.
Returns a FullPathUrl, RootPathUrl, or RelativePathUrl depending on the input string.