added example to parse-userhost / unparse->string
This commit is contained in:
parent
97a7b52316
commit
7792db48f4
|
@ -53,6 +53,21 @@ only the parsing of http URLs is implemented.
|
||||||
\semvar{userhost-record} into a string. The elements of the record
|
\semvar{userhost-record} into a string. The elements of the record
|
||||||
are escaped before the are put together.
|
are escaped before the are put together.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
\begin{code}
|
||||||
|
> (define default
|
||||||
|
(make-userhost
|
||||||
|
"andreas" "se ret" "www.sf.net" "80"))
|
||||||
|
> (userhost->string default)
|
||||||
|
"andreas:se\%20ret@www.sf.net:80"
|
||||||
|
> (parse-userhost
|
||||||
|
'("" "" "foo\%20bar@www.scsh.net" "docu" "index.html")
|
||||||
|
default)
|
||||||
|
'#{userhost}
|
||||||
|
> (userhost->string ##)
|
||||||
|
"foo\%20bar:se\%20ret@www.scsh.net:80"
|
||||||
|
\end{code}
|
||||||
|
|
||||||
For details about escaping and unescaping see section ``Handle
|
For details about escaping and unescaping see section ``Handle
|
||||||
URIs'' at page \pageref{sec:uri}.
|
URIs'' at page \pageref{sec:uri}.
|
||||||
\end{defundescx}
|
\end{defundescx}
|
||||||
|
|
Loading…
Reference in New Issue