pub trait XMLHttpRequestMethods<D: DomTypes> {
Show 25 methods // Required methods fn GetOnreadystatechange(&self) -> Option<Rc<EventHandlerNonNull<D>>>; fn SetOnreadystatechange(&self, value: Option<Rc<EventHandlerNonNull<D>>>); fn ReadyState(&self) -> u16; fn Open(&self, method: ByteString, url: USVString) -> Fallible<()>; fn Open_( &self, method: ByteString, url: USVString, async_: bool, username: Option<USVString>, password: Option<USVString>, ) -> Fallible<()>; fn SetRequestHeader( &self, name: ByteString, value: ByteString, ) -> Fallible<()>; fn Timeout(&self) -> u32; fn SetTimeout(&self, value: u32) -> ErrorResult; fn WithCredentials(&self) -> bool; fn SetWithCredentials(&self, value: bool) -> ErrorResult; fn Upload(&self) -> DomRoot<D::XMLHttpRequestUpload>; fn Send( &self, data: Option<DocumentOrBlobOrArrayBufferViewOrArrayBufferOrFormDataOrStringOrURLSearchParams<D>>, _can_gc: CanGc, ) -> Fallible<()>; 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) -> Fallible<()>; fn ResponseType(&self) -> XMLHttpRequestResponseType; fn SetResponseType(&self, value: XMLHttpRequestResponseType) -> ErrorResult; fn Response( &self, cx: SafeJSContext, _can_gc: CanGc, retval: MutableHandleValue<'_>, ); fn GetResponseText(&self) -> Fallible<USVString>; fn GetResponseXML( &self, _can_gc: CanGc, ) -> Fallible<Option<DomRoot<D::Document>>>; fn Constructor( global: &D::GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> Fallible<DomRoot<D::XMLHttpRequest>>;
}

Required Methods§

Source

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

Source

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

Source

fn ReadyState(&self) -> u16

Source

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

Source

fn Open_( &self, method: ByteString, url: USVString, async_: bool, username: Option<USVString>, password: Option<USVString>, ) -> Fallible<()>

Source

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

Source

fn Timeout(&self) -> u32

Source

fn SetTimeout(&self, value: u32) -> ErrorResult

Source

fn WithCredentials(&self) -> bool

Source

fn SetWithCredentials(&self, value: bool) -> ErrorResult

Source

fn Upload(&self) -> DomRoot<D::XMLHttpRequestUpload>

Source

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

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) -> Fallible<()>

Source

fn ResponseType(&self) -> XMLHttpRequestResponseType

Source

fn SetResponseType(&self, value: XMLHttpRequestResponseType) -> ErrorResult

Source

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

Source

fn GetResponseText(&self) -> Fallible<USVString>

Source

fn GetResponseXML( &self, _can_gc: CanGc, ) -> Fallible<Option<DomRoot<D::Document>>>

Source

fn Constructor( global: &D::GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> Fallible<DomRoot<D::XMLHttpRequest>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§