pub trait URLMethods {
Show 28 methods // Required methods fn Parse( global: &GlobalScope, url: USVString, base: Option<USVString>, _can_gc: CanGc, ) -> Option<Root<Dom<URL>>>; fn CanParse( global: &GlobalScope, url: USVString, base: Option<USVString>, ) -> bool; fn Href(&self) -> USVString; fn SetHref(&self, value: USVString) -> Result<(), Error>; fn Origin(&self) -> USVString; fn Protocol(&self) -> USVString; fn SetProtocol(&self, value: USVString); fn Username(&self) -> USVString; fn SetUsername(&self, value: USVString); fn Password(&self) -> USVString; fn SetPassword(&self, value: USVString); fn Host(&self) -> USVString; fn SetHost(&self, value: USVString); fn Hostname(&self) -> USVString; fn SetHostname(&self, value: USVString); fn Port(&self) -> USVString; fn SetPort(&self, value: USVString); fn Pathname(&self) -> USVString; fn SetPathname(&self, value: USVString); fn Search(&self) -> USVString; fn SetSearch(&self, value: USVString); fn SearchParams(&self, _can_gc: CanGc) -> Root<Dom<URLSearchParams>>; fn Hash(&self) -> USVString; fn SetHash(&self, value: USVString); fn CreateObjectURL(global: &GlobalScope, blob: &Blob) -> DOMString; fn RevokeObjectURL(global: &GlobalScope, url: DOMString); fn ToJSON(&self) -> USVString; fn Constructor( global: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, url: USVString, base: Option<USVString>, ) -> Result<Root<Dom<URL>>, Error>;
}

Required Methods§

source

fn Parse( global: &GlobalScope, url: USVString, base: Option<USVString>, _can_gc: CanGc, ) -> Option<Root<Dom<URL>>>

source

fn CanParse( global: &GlobalScope, url: USVString, base: Option<USVString>, ) -> bool

source

fn Href(&self) -> USVString

source

fn SetHref(&self, value: USVString) -> Result<(), Error>

source

fn Origin(&self) -> USVString

source

fn Protocol(&self) -> USVString

source

fn SetProtocol(&self, value: USVString)

source

fn Username(&self) -> USVString

source

fn SetUsername(&self, value: USVString)

source

fn Password(&self) -> USVString

source

fn SetPassword(&self, value: USVString)

source

fn Host(&self) -> USVString

source

fn SetHost(&self, value: USVString)

source

fn Hostname(&self) -> USVString

source

fn SetHostname(&self, value: USVString)

source

fn Port(&self) -> USVString

source

fn SetPort(&self, value: USVString)

source

fn Pathname(&self) -> USVString

source

fn SetPathname(&self, value: USVString)

source

fn Search(&self) -> USVString

source

fn SetSearch(&self, value: USVString)

source

fn SearchParams(&self, _can_gc: CanGc) -> Root<Dom<URLSearchParams>>

source

fn Hash(&self) -> USVString

source

fn SetHash(&self, value: USVString)

source

fn CreateObjectURL(global: &GlobalScope, blob: &Blob) -> DOMString

source

fn RevokeObjectURL(global: &GlobalScope, url: DOMString)

source

fn ToJSON(&self) -> USVString

source

fn Constructor( global: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, url: USVString, base: Option<USVString>, ) -> Result<Root<Dom<URL>>, Error>

Object Safety§

This trait is not object safe.

Implementors§