pub trait XMLHttpRequestMethods {
Show 25 methods // Required methods fn GetOnreadystatechange(&self) -> Option<Rc<EventHandlerNonNull>>; fn SetOnreadystatechange(&self, value: Option<Rc<EventHandlerNonNull>>); fn ReadyState(&self) -> u16; fn Open(&self, method: ByteString, url: USVString) -> Result<(), Error>; fn Open_( &self, method: ByteString, url: USVString, async: bool, username: Option<USVString>, password: Option<USVString>, ) -> Result<(), Error>; fn SetRequestHeader( &self, name: ByteString, value: ByteString, ) -> Result<(), Error>; fn Timeout(&self) -> u32; fn SetTimeout(&self, value: u32) -> Result<(), Error>; fn WithCredentials(&self) -> bool; fn SetWithCredentials(&self, value: bool) -> Result<(), Error>; fn Upload(&self) -> Root<Dom<XMLHttpRequestUpload>>; fn Send( &self, data: Option<DocumentOrBlobOrArrayBufferViewOrArrayBufferOrFormDataOrStringOrURLSearchParams>, _can_gc: CanGc, ) -> Result<(), Error>; fn Abort(&self, _can_gc: CanGc); fn ResponseURL(&self) -> USVString; fn Status(&self) -> u16; fn StatusText(&self) -> ByteString; fn GetResponseHeader(&self, name: ByteString) -> Option<ByteString>; fn GetAllResponseHeaders(&self) -> ByteString; fn OverrideMimeType(&self, mime: DOMString) -> Result<(), Error>; fn ResponseType(&self) -> XMLHttpRequestResponseType; fn SetResponseType( &self, value: XMLHttpRequestResponseType, ) -> Result<(), Error>; fn Response( &self, cx: SafeJSContext, _can_gc: CanGc, retval: MutableHandleValue<'_>, ); fn GetResponseText(&self) -> Result<USVString, Error>; fn GetResponseXML( &self, _can_gc: CanGc, ) -> Result<Option<Root<Dom<Document>>>, Error>; fn Constructor( global: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> Result<Root<Dom<XMLHttpRequest>>, Error>;
}

Required Methods§

source

fn GetOnreadystatechange(&self) -> Option<Rc<EventHandlerNonNull>>

source

fn SetOnreadystatechange(&self, value: Option<Rc<EventHandlerNonNull>>)

source

fn ReadyState(&self) -> u16

source

fn Open(&self, method: ByteString, url: USVString) -> Result<(), Error>

source

fn Open_( &self, method: ByteString, url: USVString, async: bool, username: Option<USVString>, password: Option<USVString>, ) -> Result<(), Error>

source

fn SetRequestHeader( &self, name: ByteString, value: ByteString, ) -> Result<(), Error>

source

fn Timeout(&self) -> u32

source

fn SetTimeout(&self, value: u32) -> Result<(), Error>

source

fn WithCredentials(&self) -> bool

source

fn SetWithCredentials(&self, value: bool) -> Result<(), Error>

source

fn Upload(&self) -> Root<Dom<XMLHttpRequestUpload>>

source

fn Send( &self, data: Option<DocumentOrBlobOrArrayBufferViewOrArrayBufferOrFormDataOrStringOrURLSearchParams>, _can_gc: CanGc, ) -> Result<(), Error>

source

fn Abort(&self, _can_gc: CanGc)

source

fn ResponseURL(&self) -> USVString

source

fn Status(&self) -> u16

source

fn StatusText(&self) -> ByteString

source

fn GetResponseHeader(&self, name: ByteString) -> Option<ByteString>

source

fn GetAllResponseHeaders(&self) -> ByteString

source

fn OverrideMimeType(&self, mime: DOMString) -> Result<(), Error>

source

fn ResponseType(&self) -> XMLHttpRequestResponseType

source

fn SetResponseType( &self, value: XMLHttpRequestResponseType, ) -> Result<(), Error>

source

fn Response( &self, cx: SafeJSContext, _can_gc: CanGc, retval: MutableHandleValue<'_>, )

source

fn GetResponseText(&self) -> Result<USVString, Error>

source

fn GetResponseXML( &self, _can_gc: CanGc, ) -> Result<Option<Root<Dom<Document>>>, Error>

source

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

Object Safety§

This trait is not object safe.

Implementors§