diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-03-28 12:41:44 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-03-31 15:47:37 -0700 |
| commit | 809342719541db989bee43e695f1d88b8340ac4e (patch) | |
| tree | cef8a01e52e01249ce73391f6ebb11fb9cfa77bb /src/liburl/lib.rs | |
| parent | 9aa4a949530afe44109568c40539da44f3d40ee9 (diff) | |
| download | rust-809342719541db989bee43e695f1d88b8340ac4e.tar.gz rust-809342719541db989bee43e695f1d88b8340ac4e.zip | |
url: Switch privacy defaults where necessary
Diffstat (limited to 'src/liburl/lib.rs')
| -rw-r--r-- | src/liburl/lib.rs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/liburl/lib.rs b/src/liburl/lib.rs index b729a7a69e2..41bfa7e3ef8 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<UserInfo>, + pub user: Option<UserInfo>, /// 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. |
