uri top-level property
Implementation
final uri = seq5(
seq2(_scheme, ':'.toParser()).optional(),
seq2('//'.toParser(), _authority).optional(),
_path,
seq2('?'.toParser(), _query).optional(),
seq2('#'.toParser(), _fragment).optional(),
).map5((scheme, authority, path, query, fragment) => <Symbol, dynamic>{
#scheme: scheme?.first,
#authority: authority?.second,
...lib_authority.authority.parse(authority?.second ?? '').value,
#path: path,
#query: query?.second,
#params: lib_query.query.parse(query?.second ?? '').value,
#fragment: fragment?.second,
});