Eno\Loaders ยป url

url() โ†’ string
urlItems() โ†’ array
urlList() โ†’ array

Validates a URL and returns it unaltered (or throws a ValidationError for an invalid URL).

enogood: https://json.org
bad: www.boom
php$document = Parser::parse($input);

$document->url('good');  // returns 'https://json.org'

$document->url('bad');
  // throws a ValidationError: 'bad' must contain valid URL, for instance 'https://eno-lang.org'.