We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b91bc2b commit fad3fc6Copy full SHA for fad3fc6
src/lib.rs
@@ -421,14 +421,17 @@ impl Url {
421
unsafe { ffi::ada_set_protocol(self.url, input.as_ptr().cast(), input.len()) }
422
}
423
424
+ /// A URL includes credentials if its username or password is not the empty string.
425
pub fn has_credentials(&self) -> bool {
426
unsafe { ffi::ada_has_credentials(self.url) }
427
428
429
+ /// Returns true if it has an host but it is the empty string.
430
pub fn has_empty_hostname(&self) -> bool {
431
unsafe { ffi::ada_has_empty_hostname(self.url) }
432
433
434
+ /// Returns true if it has a host (included an empty host)
435
pub fn has_hostname(&self) -> bool {
436
unsafe { ffi::ada_has_hostname(self.url) }
437
0 commit comments