is_web_address_vocabulary 0.1.2
is_web_address_vocabulary: ^0.1.2 copied to clipboard
Web addresses as values that can't name somewhere other than where they were decided to go: an origin, a path on it, and the prefixes that bound how far a grant reaches, with their JSON.
is_web_address_vocabulary #
Web addresses as values that can't name somewhere other than where they
were decided to go, with their JSON. It holds types and does nothing, and
depends on nothing but dart:core.
Origin: an http(s) site, scheme, host and port only.Origin.parsereturns null for anything carrying a path, query, fragment or credentials.WebPath: a path on an origin, made only byparse, which returns null unless the path is exactly what will be sent: a leading/, no authority, no..,@or#, and nothing a URI parser or a second decode would rewrite.PathPrefix: the start of the paths something may reach, compared by canonical segments, so19:and19%3Aare the same segment./is the whole site.AddressPrefix: anOriginand aPathPrefixon it, such as where a trajectory's replies go or how far a fetch grant reaches.
Each has an encodeX / decodeX pair. A decode throws a
FormatException naming the field. An AddressPrefix is
{"origin": "https://…", "pathPrefix": "/…/"}.
is_effects re-exports all of this, so its AddressPrefix and this one
are the same type.