some cleanups, thanks to Eli
This commit is contained in:
parent
7e86c04847
commit
97b76d474e
|
@ -660,8 +660,9 @@
|
||||||
(provide (struct-out url) (struct-out path/param))
|
(provide (struct-out url) (struct-out path/param))
|
||||||
|
|
||||||
(provide/contract
|
(provide/contract
|
||||||
(string->url (-> (or/c #rx"^[a-zA-Z][a-zA-Z0-9+.-]*:"
|
(string->url (-> (and/c string?
|
||||||
(not/c #rx"^([^:/?#]*):"))
|
(or/c #rx"^[a-zA-Z][a-zA-Z0-9+.-]*:"
|
||||||
|
(not/c #rx"^[^:/?#]*:")))
|
||||||
url?))
|
url?))
|
||||||
(path->url ((or/c path-string? path-for-some-system?) . -> . url?))
|
(path->url ((or/c path-string? path-for-some-system?) . -> . url?))
|
||||||
(url->string (url? . -> . string?))
|
(url->string (url? . -> . string?))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user