Uri

Uri

new Uri(url)

Source:
. Uri Support Class for working with Url's much easier by converting it to a usable object
Parameters:
Name Type Description
url string Generate Uri from url

Members

(readonly) Host :string

Source:
Get the host of the Uri In this library this is usually `www.neosvr-api.com`.
Type:
  • string

(readonly) Scheme :string

Source:
Get the Scheme of the Uri In this library this is usually `neosdb`.
Type:
  • string

Segments :Array.<string>

Source:
Url Segments.
Type:
  • Array.<string>
Example
const URL = new Uri("https://github.com/PolyLogiX-Studio/Neos.js")
console.log(URL.Segments)
//[ '/', 'PolyLogiX-Studio/', 'Neos.js' ]

(readonly) URL :string

Source:
. The URL the object was built on
Type:
  • string

Methods

(static) EscapeDataString(dat) → {String}

Source:
. Encode given text to be URL Friendly
Parameters:
Name Type Description
dat String
Returns:
Type
String