@@ -51,40 +51,40 @@ use collections::HashMap;
51
51
#[ deriving( Clone , Eq , TotalEq ) ]
52
52
pub struct Url {
53
53
/// The scheme part of a URL, such as `https` in the above example.
54
- scheme : ~str ,
54
+ pub scheme : ~str ,
55
55
/// A URL subcomponent for user authentication. `username` in the above example.
56
- user : Option < UserInfo > ,
56
+ pub user : Option < UserInfo > ,
57
57
/// A domain name or IP address. For example, `example.com`.
58
- host : ~str ,
58
+ pub host : ~str ,
59
59
/// A TCP port number, for example `8080`.
60
- port : Option < ~str > ,
60
+ pub port : Option < ~str > ,
61
61
/// The path component of a URL, for example `/foo/bar`.
62
- path : ~str ,
62
+ pub path : ~str ,
63
63
/// The query component of a URL. `vec!((~"baz", ~"qux"))` represents the
64
64
/// fragment `baz=qux` in the above example.
65
- query : Query ,
65
+ pub query : Query ,
66
66
/// The fragment component, such as `quz`. Doesn't include the leading `#` character.
67
- fragment : Option < ~str >
67
+ pub fragment : Option < ~str >
68
68
}
69
69
70
70
#[ deriving( Clone , Eq ) ]
71
71
pub struct Path {
72
72
/// The path component of a URL, for example `/foo/bar`.
73
- path : ~str ,
73
+ pub path : ~str ,
74
74
/// The query component of a URL. `vec!((~"baz", ~"qux"))` represents the
75
75
/// fragment `baz=qux` in the above example.
76
- query : Query ,
76
+ pub query : Query ,
77
77
/// The fragment component, such as `quz`. Doesn't include the leading `#` character.
78
- fragment : Option < ~str >
78
+ pub fragment : Option < ~str >
79
79
}
80
80
81
81
/// An optional subcomponent of a URI authority component.
82
82
#[ deriving( Clone , Eq , TotalEq ) ]
83
83
pub struct UserInfo {
84
84
/// The user name.
85
- user : ~str ,
85
+ pub user : ~str ,
86
86
/// Password or other scheme-specific authentication information.
87
- pass : Option < ~str >
87
+ pub pass : Option < ~str >
88
88
}
89
89
90
90
/// Represents the query component of a URI.
0 commit comments