[Function] enough-uri

Signature

enough-uri uri base &optional fill => result-uri

Package

ystok.uri

Arguments
uri
An instance of the uri structure class, string, or another object representing an absolute URI.
base
An instance of the uri structure class, string, or another object representing an absolute URI.
fill
Generalized Boolean, defaults to *fill-scheme-authority*.
Values

An instance of the uri structure class, newly created or the uri itself.

Description

The function converts uri into a relative URI using base as the base URI. It is similar to the Common Lisp function enough-namestring.

The port components of both uri and base are being defaulted before comparison.

When fill is true, if the value of the scheme, host, or port slot is null in uri, the value of the corresponding slot of base is placed into result-uri.