[Function] render-uri

Package

ystok.uri

Signagure

render-uri uri &optional stream encode userinfo => result-string

Arguments
uri
An instance of the uri structure class.
stream
A stream object or nil.
encode
An external format designator, t (default), or nil
.
userinfo
Keyword :password or any Lisp object specifying what userinfo should be appended to the result;
defaults to nil.
Values

A string representation of uri.

Description

This function converts uri object to result-string and if stream in not null, output the result-string there with the Common Lisp function write-string.

encode controls whether result-string contains percent-encoded characters and what external format should be used to encode the components of uri. It can be one of the following:

external format
an external format designator, passed to percent-encode,
t
refers to the value of *default-external-format*,
nil
do not call percent-encode at all.

userinfo specifies what authority part is output into the result string.

This function actually implements the print-object method on uri structures.