#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.581 2006/03/09 19:30:04 cph Exp $
+$Id: runtime.pkg,v 14.582 2006/03/10 01:46:20 cph Exp $
Copyright 1988,1989,1990,1991,1992,1993 Massachusetts Institute of Technology
Copyright 1994,1995,1996,1997,1998,1999 Massachusetts Institute of Technology
->relative-uri
->uri
<partial-uri>
+ <uri-authority>
+ <uri>
absolute-uri?
char-set:uri-alpha
char-set:uri-digit
#| -*-Scheme-*-
-$Id: url.scm,v 1.45 2006/03/09 19:30:05 cph Exp $
+$Id: url.scm,v 1.46 2006/03/10 01:46:26 cph Exp $
Copyright 2000,2001,2003,2004,2005,2006 Massachusetts Institute of Technology
(declare (usual-integrations))
\f
(define-structure (uri
- (type vector)
- (named '|#[(runtime uri)uri]|)
+ (type-descriptor <uri>)
(constructor %%make-uri)
(conc-name %uri-)
(print-procedure
(not (path-absolute? path)))
(define-structure (uri-authority
- (type vector)
- (named '|#[(runtime uri)uri-authority]|)
+ (type-descriptor <uri-authority>)
(constructor %%make-uri-authority)
(conc-name %uri-authority-)
(print-procedure
'())
,@(if (%uri-authority uri)
(let ((a (%uri-authority uri)))
- `(,@(if (uri-authority-userinfo a)
- `((userinfo ,(uri-authority-userinfo a)))
+ `(,@(if (%uri-authority-userinfo a)
+ `((userinfo ,(%uri-authority-userinfo a)))
'())
- (host ,(uri-authority-host a))
- ,@(if (uri-authority-port a)
- `((port ,(uri-authority-port a)))
+ (host ,(%uri-authority-host a))
+ ,@(if (%uri-authority-port a)
+ `((port ,(%uri-authority-port a)))
'())))
'())
(path ,(%uri-path uri))
(write-encoded fragment char-set:uri-fragment port))))
(define (write-authority authority port)
- (%write-authority (uri-authority-userinfo authority)
- (uri-authority-host authority)
- (uri-authority-port authority)
+ (%write-authority (%uri-authority-userinfo authority)
+ (%uri-authority-host authority)
+ (%uri-authority-port authority)
port))
(define (%write-authority userinfo host port output)