Parse uri and retain relative part
absolute or relative uri string to be parsed
Query part of the uri.
Fragment part of the uri (url encoded).
const uri = new Uri('http://fakedomain.com/path');
uri.fragment = 'test';
uri.toString(); // http://fakedomain.com/path/#test
// or
uri.fragment = '#test';
uri.toString(); // http://fakedomain.com/path/#test
Fragment part of the uri (url encoded).
const uri = new Uri('http://fakedomain.com/path');
uri.fragment = 'test';
uri.toString(); // http://fakedomain.com/path/#test
// or
uri.fragment = '#test';
uri.toString(); // http://fakedomain.com/path/#test
Path part of the uri.
Path part of the uri.
Get a relative uri string.
Create a relative uri string like absoluteUri
Generated using TypeDoc
Simple Uri abstraction based on https://en.wikipedia.org/wiki/Uniform_Resource_Identifier.
It is a wrapper over the outdated and non-intuitive Node.js URL.