[][src]Function net::url::user_password

pub fn user_password<S, T>(name: S, password: T) -> UserInfo where
    S: ToString,
    T: ToString

user_password returns a Userinfo containing the provided name and password.

This functionality should only be used with legacy web sites. RFC 2396 warns that interpreting Userinfo this way "is NOT RECOMMENDED, because the passing of authentication information in clear text (such as URI) has proven to be a security risk in almost every case where it has been used."