Scieneer Common Lisp 1.3.9 online documentation

ext:scheme-default-port scheme[Function]

Return the default port for the given URI scheme, otherwise nil. When generating a URI string, the port number is not shown if it equals a defined default for the scheme.

(setf (ext:scheme-default-port scheme) port)[Function]

Set the default port number for the given URI scheme. The default port for the schemes "http", "https", "ftp" and "telnet" are defined, but if other schemes are used then their default port should be defined so that the port number may be omitted if equal to the default when generating a URI string.