Struct web_sys::XmlHttpRequest [−][src]
#[repr(transparent)]pub struct XmlHttpRequest { /* fields omitted */ }
Expand description
The XmlHttpRequest class.
This API requires the following crate features to be activated: XmlHttpRequest
Implementations
Getter for the onreadystatechange field of this object.
This API requires the following crate features to be activated: XmlHttpRequest
Setter for the onreadystatechange field of this object.
This API requires the following crate features to be activated: XmlHttpRequest
Getter for the readyState field of this object.
This API requires the following crate features to be activated: XmlHttpRequest
Getter for the timeout field of this object.
This API requires the following crate features to be activated: XmlHttpRequest
Setter for the timeout field of this object.
This API requires the following crate features to be activated: XmlHttpRequest
Getter for the withCredentials field of this object.
This API requires the following crate features to be activated: XmlHttpRequest
Setter for the withCredentials field of this object.
This API requires the following crate features to be activated: XmlHttpRequest
Getter for the upload field of this object.
This API requires the following crate features to be activated: XmlHttpRequest, XmlHttpRequestUpload
Getter for the responseURL field of this object.
This API requires the following crate features to be activated: XmlHttpRequest
Getter for the statusText field of this object.
This API requires the following crate features to be activated: XmlHttpRequest
Getter for the responseType field of this object.
This API requires the following crate features to be activated: XmlHttpRequest, XmlHttpRequestResponseType
Setter for the responseType field of this object.
This API requires the following crate features to be activated: XmlHttpRequest, XmlHttpRequestResponseType
Getter for the responseText field of this object.
This API requires the following crate features to be activated: XmlHttpRequest
Getter for the responseXML field of this object.
This API requires the following crate features to be activated: Document, XmlHttpRequest
The new XmlHttpRequest(..) constructor, creating a new instance of XmlHttpRequest.
This API requires the following crate features to be activated: XmlHttpRequest
The new XmlHttpRequest(..) constructor, creating a new instance of XmlHttpRequest.
This API requires the following crate features to be activated: XmlHttpRequest
The getAllResponseHeaders() method.
This API requires the following crate features to be activated: XmlHttpRequest
The getResponseHeader() method.
This API requires the following crate features to be activated: XmlHttpRequest
The open() method.
This API requires the following crate features to be activated: XmlHttpRequest
The overrideMimeType() method.
This API requires the following crate features to be activated: XmlHttpRequest
The send() method.
This API requires the following crate features to be activated: Document, XmlHttpRequest
The send() method.
This API requires the following crate features to be activated: Blob, XmlHttpRequest
The send() method.
This API requires the following crate features to be activated: XmlHttpRequest
The send() method.
This API requires the following crate features to be activated: XmlHttpRequest
The send() method.
This API requires the following crate features to be activated: FormData, XmlHttpRequest
pub fn send_with_opt_url_search_params(
&self,
body: Option<&UrlSearchParams>
) -> Result<(), JsValue>
pub fn send_with_opt_url_search_params(
&self,
body: Option<&UrlSearchParams>
) -> Result<(), JsValue>
The send() method.
This API requires the following crate features to be activated: UrlSearchParams, XmlHttpRequest
The send() method.
This API requires the following crate features to be activated: XmlHttpRequest
pub fn send_with_opt_readable_stream(
&self,
body: Option<&ReadableStream>
) -> Result<(), JsValue>
pub fn send_with_opt_readable_stream(
&self,
body: Option<&ReadableStream>
) -> Result<(), JsValue>
The send() method.
This API requires the following crate features to be activated: ReadableStream, XmlHttpRequest
The setRequestHeader() method.
This API requires the following crate features to be activated: XmlHttpRequest
The XMLHttpRequest.UNSENT const.
This API requires the following crate features to be activated: XmlHttpRequest
The XMLHttpRequest.OPENED const.
This API requires the following crate features to be activated: XmlHttpRequest
The XMLHttpRequest.HEADERS_RECEIVED const.
This API requires the following crate features to be activated: XmlHttpRequest
The XMLHttpRequest.LOADING const.
This API requires the following crate features to be activated: XmlHttpRequest
Methods from Deref<Target = XmlHttpRequestEventTarget>
Getter for the onloadstart field of this object.
This API requires the following crate features to be activated: XmlHttpRequestEventTarget
Setter for the onloadstart field of this object.
This API requires the following crate features to be activated: XmlHttpRequestEventTarget
Getter for the onprogress field of this object.
This API requires the following crate features to be activated: XmlHttpRequestEventTarget
Setter for the onprogress field of this object.
This API requires the following crate features to be activated: XmlHttpRequestEventTarget
Getter for the onabort field of this object.
This API requires the following crate features to be activated: XmlHttpRequestEventTarget
Setter for the onabort field of this object.
This API requires the following crate features to be activated: XmlHttpRequestEventTarget
Getter for the onerror field of this object.
This API requires the following crate features to be activated: XmlHttpRequestEventTarget
Setter for the onerror field of this object.
This API requires the following crate features to be activated: XmlHttpRequestEventTarget
Getter for the onload field of this object.
This API requires the following crate features to be activated: XmlHttpRequestEventTarget
Setter for the onload field of this object.
This API requires the following crate features to be activated: XmlHttpRequestEventTarget
Getter for the ontimeout field of this object.
This API requires the following crate features to be activated: XmlHttpRequestEventTarget
Setter for the ontimeout field of this object.
This API requires the following crate features to be activated: XmlHttpRequestEventTarget
Getter for the onloadend field of this object.
This API requires the following crate features to be activated: XmlHttpRequestEventTarget
Setter for the onloadend field of this object.
This API requires the following crate features to be activated: XmlHttpRequestEventTarget
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
type Target = XmlHttpRequestEventTarget
type Target = XmlHttpRequestEventTarget
The resulting type after dereferencing.
Dereferences the value.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs a dynamic instanceof check to see whether the JsValue
provided is an instance of this type. Read more
Performs a zero-cost unchecked conversion from a JsValue into an
instance of Self Read more
Performs a zero-cost unchecked conversion from a &JsValue into an
instance of &Self. Read more
Test whether this JS value has a type T. Read more
Performs a dynamic cast (checked at runtime) of this value into the
target type T. Read more
Performs a dynamic cast (checked at runtime) of this value into the
target type T. Read more
Performs a zero-cost unchecked cast into the specified type. Read more
Performs a zero-cost unchecked cast into a reference to the specified type. Read more
Test whether this JS value is an instance of the type T. Read more
Performs a dynamic check to see whether the JsValue provided
is a value of this type. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
The wasm ABI type references to Self are recovered from.
type Anchor = ManuallyDrop<XmlHttpRequest>
type Anchor = ManuallyDrop<XmlHttpRequest>
The type that holds the reference to Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read more
Recover a Self::Anchor from Self::Abi. Read more
Auto Trait Implementations
impl RefUnwindSafe for XmlHttpRequest
impl !Send for XmlHttpRequest
impl !Sync for XmlHttpRequest
impl Unpin for XmlHttpRequest
impl UnwindSafe for XmlHttpRequest
Blanket Implementations
Mutably borrows from an owned value. Read more
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
Same as IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err. Read more