diff --git a/scheme/lib/url.scm b/scheme/lib/url.scm index 92a0042..ae84494 100644 --- a/scheme/lib/url.scm +++ b/scheme/lib/url.scm @@ -39,6 +39,11 @@ (host server-host) (port server-port)) +(define-record-discloser :server + (lambda (s) + (list 'server + (server->string s)))) + ;;; Parse a URI path (a list representing a path, not a string!) into ;;; a server record. Default values are taken from the server ;;; record DEFAULT except for the host. Returns a server record if @@ -115,6 +120,11 @@ (search http-url-search) (fragment-identifier http-url-fragment-identifier)) +(define-record-discloser :http-url + (lambda (url) + (list 'http-url + (http-url->string url)))) + ;;; The URI parser (parse-uri in uri.scm) maps a string to four parts: ;;; : ? # , , and ;;; are strings; is a non-empty string list -- the