loaders ยป url

url() โ†’ string
url_items() โ†’ list
url_list() โ†’ list

Validates a URL and returns it unaltered (or raises an error for an invalid URL).

enogood: https://json.org
bad: www.boom
python>>> document = Eno.parse(input)

>>> document.url('good')
'https://json.org'
>>> document.url('bad')
ValidationError: 'bad' must contain valid URL, for instance 'https://eno-lang.org'.