From 809342719541db989bee43e695f1d88b8340ac4e Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 28 Mar 2014 12:41:44 -0700 Subject: [PATCH] url: Switch privacy defaults where necessary --- src/liburl/lib.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/liburl/lib.rs b/src/liburl/lib.rs index b729a7a69e21..41bfa7e3ef8d 100644 --- a/src/liburl/lib.rs +++ b/src/liburl/lib.rs @@ -51,40 +51,40 @@ use collections::HashMap; #[deriving(Clone, Eq, TotalEq)] pub struct Url { /// The scheme part of a URL, such as `https` in the above example. - scheme: ~str, + pub scheme: ~str, /// A URL subcomponent for user authentication. `username` in the above example. - user: Option, + pub user: Option, /// A domain name or IP address. For example, `example.com`. - host: ~str, + pub host: ~str, /// A TCP port number, for example `8080`. - port: Option<~str>, + pub port: Option<~str>, /// The path component of a URL, for example `/foo/bar`. - path: ~str, + pub path: ~str, /// The query component of a URL. `vec!((~"baz", ~"qux"))` represents the /// fragment `baz=qux` in the above example. - query: Query, + pub query: Query, /// The fragment component, such as `quz`. Doesn't include the leading `#` character. - fragment: Option<~str> + pub fragment: Option<~str> } #[deriving(Clone, Eq)] pub struct Path { /// The path component of a URL, for example `/foo/bar`. - path: ~str, + pub path: ~str, /// The query component of a URL. `vec!((~"baz", ~"qux"))` represents the /// fragment `baz=qux` in the above example. - query: Query, + pub query: Query, /// The fragment component, such as `quz`. Doesn't include the leading `#` character. - fragment: Option<~str> + pub fragment: Option<~str> } /// An optional subcomponent of a URI authority component. #[deriving(Clone, Eq, TotalEq)] pub struct UserInfo { /// The user name. - user: ~str, + pub user: ~str, /// Password or other scheme-specific authentication information. - pass: Option<~str> + pub pass: Option<~str> } /// Represents the query component of a URI.