Skip to content

Commit 8093427

Browse files
committed
url: Switch privacy defaults where necessary
1 parent 9aa4a94 commit 8093427

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/liburl/lib.rs

+12-12
Original file line numberDiff line numberDiff line change
@@ -51,40 +51,40 @@ use collections::HashMap;
5151
#[deriving(Clone, Eq, TotalEq)]
5252
pub struct Url {
5353
/// The scheme part of a URL, such as `https` in the above example.
54-
scheme: ~str,
54+
pub scheme: ~str,
5555
/// A URL subcomponent for user authentication. `username` in the above example.
56-
user: Option<UserInfo>,
56+
pub user: Option<UserInfo>,
5757
/// A domain name or IP address. For example, `example.com`.
58-
host: ~str,
58+
pub host: ~str,
5959
/// A TCP port number, for example `8080`.
60-
port: Option<~str>,
60+
pub port: Option<~str>,
6161
/// The path component of a URL, for example `/foo/bar`.
62-
path: ~str,
62+
pub path: ~str,
6363
/// The query component of a URL. `vec!((~"baz", ~"qux"))` represents the
6464
/// fragment `baz=qux` in the above example.
65-
query: Query,
65+
pub query: Query,
6666
/// The fragment component, such as `quz`. Doesn't include the leading `#` character.
67-
fragment: Option<~str>
67+
pub fragment: Option<~str>
6868
}
6969

7070
#[deriving(Clone, Eq)]
7171
pub struct Path {
7272
/// The path component of a URL, for example `/foo/bar`.
73-
path: ~str,
73+
pub path: ~str,
7474
/// The query component of a URL. `vec!((~"baz", ~"qux"))` represents the
7575
/// fragment `baz=qux` in the above example.
76-
query: Query,
76+
pub query: Query,
7777
/// The fragment component, such as `quz`. Doesn't include the leading `#` character.
78-
fragment: Option<~str>
78+
pub fragment: Option<~str>
7979
}
8080

8181
/// An optional subcomponent of a URI authority component.
8282
#[deriving(Clone, Eq, TotalEq)]
8383
pub struct UserInfo {
8484
/// The user name.
85-
user: ~str,
85+
pub user: ~str,
8686
/// Password or other scheme-specific authentication information.
87-
pass: Option<~str>
87+
pub pass: Option<~str>
8888
}
8989

9090
/// Represents the query component of a URI.

0 commit comments

Comments
 (0)