/usr/share/racket/collects/net/url-structs.rkt is in racket-common 6.3-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #lang racket/base
(require racket/contract/base racket/serialize)
(define-serializable-struct url
(scheme user host port path-absolute? path query fragment)
#:mutable
#:transparent)
(define-serializable-struct path/param (path param)
#:transparent)
(provide/contract
(struct url ([scheme (or/c false/c string?)]
[user (or/c false/c string?)]
[host (or/c false/c string?)]
[port (or/c false/c number?)]
[path-absolute? boolean?]
[path (listof path/param?)]
[query (listof (cons/c symbol? (or/c string? false/c)))]
[fragment (or/c false/c string?)]))
(struct path/param ([path (or/c string? (symbols 'up 'same))]
[param (listof string?)])))
|