Lines Matching refs:Url
15 use crate::{Host, ParseError, Position, Url};
37 pub fn href(url: &Url) -> &str { in href()
42 pub fn set_href(url: &mut Url, value: &str) -> Result<(), ParseError> { in set_href() argument
43 *url = Url::parse(value)?; in set_href()
48 pub fn origin(url: &Url) -> String { in origin()
54 pub fn protocol(url: &Url) -> &str { in protocol()
60 pub fn set_protocol(url: &mut Url, mut new_protocol: &str) -> Result<(), ()> { in set_protocol() argument
71 pub fn username(url: &Url) -> &str { in username()
77 pub fn set_username(url: &mut Url, new_username: &str) -> Result<(), ()> { in set_username() argument
83 pub fn password(url: &Url) -> &str { in password()
89 pub fn set_password(url: &mut Url, new_password: &str) -> Result<(), ()> { in set_password() argument
99 pub fn host(url: &Url) -> &str { in host()
105 pub fn set_host(url: &mut Url, new_host: &str) -> Result<(), ()> { in set_host() argument
156 pub fn hostname(url: &Url) -> &str { in hostname()
162 pub fn set_hostname(url: &mut Url, new_hostname: &str) -> Result<(), ()> { in set_hostname() argument
198 pub fn port(url: &Url) -> &str { in port()
204 pub fn set_port(url: &mut Url, new_port: &str) -> Result<(), ()> { in set_port() argument
228 pub fn pathname(url: &Url) -> &str { in pathname()
233 pub fn set_pathname(url: &mut Url, new_pathname: &str) { in set_pathname() argument
251 pub fn search(url: &Url) -> &str { in search()
256 pub fn set_search(url: &mut Url, new_search: &str) { in set_search() argument
265 pub fn hash(url: &Url) -> &str { in hash()
270 pub fn set_hash(url: &mut Url, new_hash: &str) { in set_hash() argument